ath11k: FILS discovery and unsolicited broadcast probe response support
PATCH 1/1 ath11k: FILS discovery and unsolicited broadcast probe response support
This patch adds driver support for FILS discovery and unsolicited broadcast probe response transmission features which are used for in-band discovery in 6GHz band.
Currently this support is enabled only in 6GHz by setting hardware flags.
Changes include WMI commands to enable transmission, set packet interval, set template, and handle events.
--- drivers/net/wireless/ath/ath11k/mac.c | 57 ++++++++ drivers/net/wireless/ath/ath11k/wmi.c | 203 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 47 ++++++ 3 files changed, 307 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +57 -0
@@ -1850,6 +1850,52 @@ static void ath11k_recalculate_mgmt_rate(struct ath11k *ar,ath11k_warn (ar->ab,"failed to set beacon tx rate %d\n" , ret); } +static int ath11k_mac_fils_discovery (struct ath11k_vif *arvif, +struct ieee80211_bss_conf *info) +{ +struct ath11k *ar = arvif->ar; +struct sk_buff *tmpl; +int ret; +u32 interval; +bool unsol_bcast_probe_resp_enabled = false; + +if (info->fils_discovery.max_interval) { + interval = info->fils_discovery.max_interval; + + tmpl =ieee80211_get_fils_discovery_tmpl (ar->hw, arvif->vif); +if (tmpl) + ret =ath11k_wmi_fils_discovery_tmpl (ar, arvif->vdev_id, + tmpl); + }else if (info->unsol_bcast_probe_resp_interval) { + unsol_bcast_probe_resp_enabled =1 ; + interval = info->unsol_bcast_probe_resp_interval; + + tmpl =ieee80211_get_unsol_bcast_probe_resp_tmpl (ar->hw, + arvif->vif); +if (tmpl) + ret =ath11k_wmi_probe_resp_tmpl (ar, arvif->vdev_id, + tmpl); + }else {/* Disable */ +return ath11k_wmi_fils_discovery (ar, arvif->vdev_id,0 , false); + } + +if (!tmpl) { +ath11k_warn (ar->ab, +"mac vdev %i failed to retrieve %s template\n" , + arvif->vdev_id, (unsol_bcast_probe_resp_enabled ? +"unsolicited broadcast probe response" : +"FILS discovery" )); +return -EPERM ; + } +kfree_skb (tmpl); + +if (!ret) + ret =ath11k_wmi_fils_discovery (ar, arvif->vdev_id, interval, + unsol_bcast_probe_resp_enabled); + +return ret; +} + static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *info,
@@ -2111,6 +2157,10 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, } } +if (changed &BSS_CHANGED_FILS_DISCOVERY || + changed &BSS_CHANGED_UNSOL_BCAST_PROBE_RESP ) +ath11k_mac_fils_discovery (arvif, info); +mutex_unlock (&ar->conf_mutex); }
@@ -6256,6 +6306,13 @@ static int __ath11k_mac_register(struct ath11k *ar) ar->hw->wiphy->num_iftype_ext_capab =ARRAY_SIZE (ath11k_iftypes_ext_capa); +if (ar->supports_6ghz) { +wiphy_ext_feature_set (ar->hw->wiphy, +NL80211_EXT_FEATURE_FILS_DISCOVERY ); +wiphy_ext_feature_set (ar->hw->wiphy, +NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP ); + } +ath11k_reg_init (ar);if (!test_bit (ATH11K_FLAG_RAW_MODE , &ab->dev_flags)) {
drivers/net/wireless/ath/ath11k/wmi.c +203 -0
227 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/wmi.h +47 -0
87 lines not on this page · raw message
base-commit: 1c1faf94d06b5d2fb96a8bbc45f643ef78e4a296
Signature · 7 lines
2.25.0 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 10 lines · Aloka Dixit
This patch adds driver support for FILS discovery and unsolicited broadcast probe response transmission features which are used for in-band discovery in 6GHz band.
Currently this support is enabled only in 6GHz by setting hardware flags.Changes include WMI commands to enable transmission, set packet interval, set template, and handle events.
Signed-off-by Aloka Dixit <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
047679e366b9 ath11k: FILS discovery and unsolicited broadcast probe response support
Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 10 lines · Aloka Dixit
This patch adds driver support for FILS discovery and unsolicited broadcast probe response transmission features which are used for in-band discovery in 6GHz band.
Currently this support is enabled only in 6GHz by setting hardware flags.Changes include WMI commands to enable transmission, set packet interval, set template, and handle events.
Signed-off-by Aloka Dixit <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
047679e366b9 ath11k: FILS discovery and unsolicited broadcast probe response support
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches