Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fe3eac7 authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent a58fbe1a
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1362,10 +1362,6 @@ ieee80211_rx_h_sta_process(struct ieee80211_rx_data *rx)
			}
		}
	} else if (rx->sdata->vif.type == NL80211_IFTYPE_OCB) {
		u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len,
						NL80211_IFTYPE_OCB);
		/* OCB uses wild-card BSSID */
		if (is_broadcast_ether_addr(bssid))
		sta->last_rx = jiffies;
	} else if (!is_multicast_ether_addr(hdr->addr1)) {
		/*