Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: make multicast variable a bool in ieee80211_accept_frame()

The multicast variable in the ieee80211_accept_frame() function is
treated as a boolean, but defined as int. Fix that.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Luca Coelho and committed by
Johannes Berg
e5f2e067 4a199068

+1 -1
+1 -1
net/mac80211/rx.c
··· 3574 3574 struct ieee80211_hdr *hdr = (void *)skb->data; 3575 3575 struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb); 3576 3576 u8 *bssid = ieee80211_get_bssid(hdr, skb->len, sdata->vif.type); 3577 - int multicast = is_multicast_ether_addr(hdr->addr1); 3577 + bool multicast = is_multicast_ether_addr(hdr->addr1); 3578 3578 3579 3579 switch (sdata->vif.type) { 3580 3580 case NL80211_IFTYPE_STATION: