]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix control port tx status check
authorMarkus Theil <markus.theil@tu-ilmenau.de>
Mon, 22 Jun 2020 12:35:42 +0000 (14:35 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Jun 2020 08:48:09 +0000 (10:48 +0200)
commit5a75c05cf17e4acf09407f139f42737158d18088
tree633af79ebc015dbee397038002431c5e151d12af
parent680f1f49cef7212fee2f866030a1d34f8229971f
mac80211: fix control port tx status check

The initial control port tx status patch assumed, that
we have IEEE 802.11 frames, but actually ethernet frames
are stored in the ack skb. Fix this by checking for the
correct ethertype and skb protocol 802.3.

Also allow tx status reports for ETH_P_PREAUTH, as preauth
frames can also be send over the nl80211 control port.

Fixes: bf4f3620a3d6 ("mac80211: support control port TX status reporting")
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20200622123542.173695-1-markus.theil@tu-ilmenau.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c