diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-11-21 14:46:08 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-11-27 11:23:20 +0100 |
commit | 7b6ddeaf27eca72795ceeae2f0f347db1b5f9a30 (patch) | |
tree | cc562ff138989b1e20f0fb19b2e2be1a0aaf90c9 /include/net/mac80211.h | |
parent | 01a95b2141e337dea15ad48e60a35c72a9b10205 (diff) | |
download | linux-7b6ddeaf27eca72795ceeae2f0f347db1b5f9a30.tar.gz linux-7b6ddeaf27eca72795ceeae2f0f347db1b5f9a30.tar.bz2 linux-7b6ddeaf27eca72795ceeae2f0f347db1b5f9a30.zip |
mac80211: use QoS NDP for AP probing
When connected to a QoS/WMM AP, mac80211 should use a QoS NDP
for probing it, instead of a regular non-QoS one, fix this.
Change all the drivers to *not* allow QoS NDP for now, even
though it looks like most of them should be OK with that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index cc9073e45be9..eec143cca1c0 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -4470,18 +4470,24 @@ struct sk_buff *ieee80211_pspoll_get(struct ieee80211_hw *hw, * ieee80211_nullfunc_get - retrieve a nullfunc template * @hw: pointer obtained from ieee80211_alloc_hw(). * @vif: &struct ieee80211_vif pointer from the add_interface callback. + * @qos_ok: QoS NDP is acceptable to the caller, this should be set + * if at all possible * * Creates a Nullfunc template which can, for example, uploaded to * hardware. The template must be updated after association so that correct * BSSID and address is used. * + * If @qos_ndp is set and the association is to an AP with QoS/WMM, the + * returned packet will be QoS NDP. + * * Note: Caller (or hardware) is responsible for setting the * &IEEE80211_FCTL_PM bit as well as Duration and Sequence Control fields. * * Return: The nullfunc template. %NULL on error. */ struct sk_buff *ieee80211_nullfunc_get(struct ieee80211_hw *hw, - struct ieee80211_vif *vif); + struct ieee80211_vif *vif, + bool qos_ok); /** * ieee80211_probereq_get - retrieve a Probe Request template |