mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
wifi: mac80211: fix ieee80211_drop_unencrypted_mgmt return type/value
Somehow, I managed to botch this and pretty much completely break
wifi. My original patch did contain these changes, but I seem to
have lost them before sending to the list. Fix it now.
Reported-and-tested-by: Kalle Valo <kvalo@kernel.org>
Fixes: 6c02fab724
("wifi: mac80211: split ieee80211_drop_unencrypted_mgmt() return value")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
9896f0608f
commit
c419d88455
1 changed files with 3 additions and 2 deletions
|
@ -2405,7 +2405,8 @@ static int ieee80211_drop_unencrypted(struct ieee80211_rx_data *rx, __le16 fc)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx)
|
||||
static ieee80211_rx_result
|
||||
ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx)
|
||||
{
|
||||
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(rx->skb);
|
||||
struct ieee80211_mgmt *mgmt = (void *)rx->skb->data;
|
||||
|
@ -2473,7 +2474,7 @@ static int ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx)
|
|||
return RX_DROP_U_UNPROT_UNICAST_PUB_ACTION;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return RX_CONTINUE;
|
||||
}
|
||||
|
||||
static ieee80211_rx_result
|
||||
|
|
Loading…
Reference in a new issue