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)
commit86a1b9d7c275a3dba69e7ab099f8d5f71f69f6a8
tree633af79ebc015dbee397038002431c5e151d12af
parent0c1a7f13c9ec1ceb18d97ef4b1dd20ec71ffba31
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: a7528198add8 ("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