ath11k: Remove probe response offload template setup
PATCH 1/1 ath11k: Remove probe response offload template setup
Probe response offload support is not supported by IPQ8074 firmware. Hence do not advertise or set probe response template to the firmware.
This would avoid the below error during template setup. 'failed to update prb tmpl -1'
--- drivers/net/wireless/ath/ath11k/mac.c | 40 ------------------------ drivers/net/wireless/ath/ath11k/wmi.c | 58 ----------------------------------- drivers/net/wireless/ath/ath11k/wmi.h | 8 ----- 3 files changed, 106 deletions(-)
drivers/net/wireless/ath/ath11k/mac.c +0 -40
@@ -828,34 +828,6 @@ static int ath11k_mac_setup_bcn_tmpl(struct ath11k_vif *arvif)return ret; } -static int ath11k_mac_setup_prb_tmpl (struct ath11k_vif *arvif) -{ -struct ath11k *ar = arvif->ar; -struct ieee80211_hw *hw = ar->hw; -struct ieee80211_vif *vif = arvif->vif; -struct sk_buff *prb; -int ret; - -/* Interface validation is part of the below function, need not -* check here. -*/ - prb =ieee80211_proberesp_get (hw, vif); -if (!prb) { -ath11k_warn (ar->ab,"failed to get probe resp template from mac80211\n" ); -return -EPERM ; - } - - ret =ath11k_wmi_prb_tmpl (ar, arvif->vdev_id, prb); -kfree_skb (prb); - -if (ret) { -ath11k_warn (ar->ab,"failed to submit probe resp template command: %d\n" , - ret); - } - -return ret; -} -static void ath11k_control_beaconing (struct ath11k_vif *arvif,struct ieee80211_bss_conf *info) {
@@ -1697,13 +1669,6 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw, ret); } -if (changed &BSS_CHANGED_AP_PROBE_RESP ) { - ret =ath11k_mac_setup_prb_tmpl (arvif); -if (ret) -ath11k_warn (ar->ab,"failed to setup probe resp template on vdev %i: %d\n" , - arvif->vdev_id, ret); - } -if (changed & (BSS_CHANGED_BEACON_INFO |BSS_CHANGED_BEACON )) { arvif->dtim_period = info->dtim_period;
@@ -4120,11 +4085,6 @@ ath11k_mac_update_vif_chan(struct ath11k *ar,ath11k_warn (ab,"failed to update bcn tmpl during csa: %d\n" , ret); - ret =ath11k_mac_setup_prb_tmpl (arvif); -if (ret) -ath11k_warn (ar->ab,"failed to update prb tmpl: %d\n" , - ret); - ret =ath11k_mac_vdev_restart (arvif, &vifs[i].new_ctx->def);if (ret) { ath11k_warn(ab, "failed to restart vdev %d: %d\n",
drivers/net/wireless/ath/ath11k/wmi.c +0 -58
64 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/wmi.h +0 -8
@@ -3792,12 +3792,6 @@ struct wmi_bcn_tmpl_cmd {u32 esp_ie_offset; } __packed; -struct wmi_prb_tmpl_cmd { -u32 tlv_header; -u32 vdev_id; -u32 buf_len; -} __packed; -struct wmi_key_seq_counter {u32 key_seq_counter_l;u32 key_seq_counter_h;
@@ -5143,8 +5137,6 @@ int ath11k_wmi_mgmt_send(struct ath11k *ar, u32 vdev_id, u32 buf_id,int ath11k_wmi_bcn_tmpl (struct ath11k *ar,u32 vdev_id,struct ieee80211_mutable_offsets *offs,struct sk_buff *bcn); -int ath11k_wmi_prb_tmpl (struct ath11k *ar,u32 vdev_id, -struct sk_buff *prb);int ath11k_wmi_vdev_down (struct ath11k *ar,u8 vdev_id);int ath11k_wmi_vdev_up (struct ath11k *ar,u32 vdev_id,u32 aid,const u8 *bssid);
Signature · 7 lines
2.7.4 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 8 lines · Sriram R
Probe response offload support is not supported by IPQ8074 firmware. Hence do not advertise or set probe response template to the firmware.
This would avoid the below error during template setup. 'failed to update prb tmpl -1'
Signed-off-by Sriram R <[email protected]>
New warnings:
drivers/net/wireless/ath/ath11k/wmi.c:4597:34: warning: mixing different enum typesdrivers/net/wireless/ath/ath11k/wmi.c:4597:34: unsigned int enum dfs_reg versusdrivers/net/wireless/ath/ath11k/wmi.c:4597:34: unsigned int enum ath11k_dfs_region
Patch set to Changes Requested.
Signature · 9 lines
https://patchwork.kernel.org/patch/10972793/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 11 lines · Kalle Valo
Quoted 8 lines · Sriram R
Probe response offload support is not supported by IPQ8074 firmware. Hence do not advertise or set probe response template to the firmware.
This would avoid the below error during template setup. 'failed to update prb tmpl -1'
Signed-off-by Sriram R <[email protected]>
Quoted 7 lines
New warnings:
drivers/net/wireless/ath/ath11k/wmi.c:4597:34: warning: mixing different enum typesdrivers/net/wireless/ath/ath11k/wmi.c:4597:34: unsigned int enumdfs_regversusdrivers/net/wireless/ath/ath11k/wmi.c:4597:34: unsigned int enumath11k_dfs_regionPatch set to Changes Requested.
Actually I'll take that back, I don't drop this patch. I got confused which commit caused those. It's actually this one:
b0d742f32bc3 ath11k: Fix vdev start failure when operating in CN, KR regdomain
Signature · 6 lines
Kalle Valo _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 8 lines · Sriram R
Probe response offload support is not supported by IPQ8074 firmware. Hence do not advertise or set probe response template to the firmware.
This would avoid the below error during template setup. 'failed to update prb tmpl -1'
Signed-off-by Sriram R <[email protected]>
Patch applied to ath.git, thanks.
10c16c257e4e ath11k: Remove probe response offload template setup
Signature · 9 lines
https://patchwork.kernel.org/patch/10972793/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k