mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
Revert "wifi: mac80211: don't encrypt pre-auth (ETH_P_PREAUTH) frames"
This reverts commitdd40677999. Never encrypting the frames broke a number of tests that do additional pre-authentication while already connected, and then the frames didn't go out correctly. Whatever this was intended to fix, this wasn't the right fix. Fixes:dd40677999("wifi: mac80211: don't encrypt pre-auth (ETH_P_PREAUTH) frames") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -557,9 +557,6 @@ ieee80211_tx_h_check_control_port_protocol(struct ieee80211_tx_data *tx)
|
||||
info->flags |= IEEE80211_TX_CTL_USE_MINRATE;
|
||||
}
|
||||
|
||||
if (tx->skb->protocol == htons(ETH_P_PREAUTH))
|
||||
info->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
|
||||
|
||||
return TX_CONTINUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user