]> 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)
commited5ad6c797968e20961b976e495dc4e86eecda29
tree633af79ebc015dbee397038002431c5e151d12af
parent0c03ea351d42f5551c83a5e317c0d07d21ac8492
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: 44d882d881e0 ("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