Skip to content

Commit 6fe3eac

Browse files
committed
mac80211: OCB: remove pointless check for broadcast BSSID
The OCB input path already checked that the BSSID is the broadcast address, so the later check can never fail. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent a58fbe1 commit 6fe3eac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

net/mac80211/rx.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,11 +1362,7 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
13621362
}
13631363
}
13641364
} else if (rx->sdata->vif.type == NL80211_IFTYPE_OCB) {
1365-
u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len,
1366-
NL80211_IFTYPE_OCB);
1367-
/* OCB uses wild-card BSSID */
1368-
if (is_broadcast_ether_addr(bssid))
1369-
sta->last_rx = jiffies;
1365+
sta->last_rx = jiffies;
13701366
} else if (!is_multicast_ether_addr(hdr->addr1)) {
13711367
/*
13721368
* Mesh beacons will update last_rx when if they are found to

0 commit comments

Comments
 (0)