mac80211: add ieee80211_hw flag for QoS NDP support
authorBen Caradoc-Davies <ben@transient.nz>
Sun, 18 Mar 2018 23:57:44 +0000 (12:57 +1300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Apr 2018 10:13:03 +0000 (11:13 +0100)
commitdf0568b90af2bddb97aaee05e28f3e71f71c2eb0
tree2a8119489bf0c5254fde13f5885b97008875c096
parentfa323725bb0189fc17aac49a20d241c6a7114b84
mac80211: add ieee80211_hw flag for QoS NDP support

(Backport to v4.15.4)

Commit 7b6ddeaf27ec ("mac80211: use QoS NDP for AP probing") added an
argument qos_ok to ieee80211_nullfunc_get to support QoS NDP. Despite
the claim in the commit log "Change all the drivers to *not* allow
QoS NDP for now, even though it looks like most of them should be OK
with that", this commit enables QoS NDP in response to beacons (see
change to mlme.c:ieee80211_send_nullfunc), causing ath9k_htc to lose
IP connectivity. See:
https://patchwork.kernel.org/patch/10241109/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891060

Introduce a hardware flag to allow such buggy drivers to override the
correct default behaviour of mac80211 of sending QoS NDP packets.

Signed-off-by: Ben Caradoc-Davies <ben@transient.nz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mac80211-add-ieee8211_hw-flag-for-qos-ndp-support.patch
include/net/mac80211.h
net/mac80211/debugfs.c
net/mac80211/mlme.c