Skip to content

Commit f8b43c5

Browse files
denkenzjmberg-intel
authored andcommitted
mac80211: Correctly set noencrypt for PAE frames
The noencrypt flag was intended to be set if the "frame was received unencrypted" according to include/uapi/linux/nl80211.h. However, the current behavior is opposite of this. Cc: [email protected] Fixes: 018f6fb ("mac80211: Send control port frames over nl80211") Signed-off-by: Denis Kenzior <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent c8a41c6 commit f8b43c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ static void ieee80211_deliver_skb_to_local_stack(struct sk_buff *skb,
24472447
skb->protocol == cpu_to_be16(ETH_P_PREAUTH)) &&
24482448
sdata->control_port_over_nl80211)) {
24492449
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
2450-
bool noencrypt = status->flag & RX_FLAG_DECRYPTED;
2450+
bool noencrypt = !(status->flag & RX_FLAG_DECRYPTED);
24512451

24522452
cfg80211_rx_control_port(dev, skb, noencrypt);
24532453
dev_kfree_skb(skb);

0 commit comments

Comments
 (0)