- if (ds->ds_rxstat.rs_keyix != HAL_RXKEYIX_INVALID &&
-- (ni = sc->sc_keyixmap[ds->ds_rxstat.rs_keyix]) != NULL) {
-+ (ni = sc->sc_keyixmap[ds->ds_rxstat.rs_keyix]) != NULL &&
-+ ieee80211_check_rxnode(ni, (const struct ieee80211_frame_min *) skb->data)) {
+ if (rs->rs_keyix != HAL_RXKEYIX_INVALID &&
+- (ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) {
++ ((ni = sc->sc_keyixmap[rs->rs_keyix]) != NULL) &&
++ ieee80211_check_rxnode(ni, (const struct ieee80211_frame_min *) skb->data)) {