ath11k: add TWT support
PATCH v3 1/1 ath11k: add TWT support
Add target wait time wmi calls to the driver. En/disable the support from when the bss_config changes. We ignore the cmd completion events.
Signed-off-by Shashidhar Lakkavalli <[email protected]>
Signed-off-by John Crispin <[email protected]>
---
Johannes merged the mac80211 part into the next tree. This can go into ath11k-bringup once it has been rebased.
drivers/net/wireless/ath/ath11k/mac.c | 12 ++++ drivers/net/wireless/ath/ath11k/wmi.c | 91 +++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 71 +++++++++++++++++++++ 3 files changed, 174 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +12 -0
@@ -1299,6 +1299,11 @@ static void ath11k_peer_assoc_h_he(struct ath11k *ar, } } +if (he_cap->he_cap_elem.mac_cap_info[0 ] &IEEE80211_HE_MAC_CAP0_TWT_RES ) + arg->twt_responder = true; +if (he_cap->he_cap_elem.mac_cap_info[0 ] &IEEE80211_HE_MAC_CAP0_TWT_REQ ) + arg->twt_requester = true; +switch (sta->bandwidth) {case IEEE80211_STA_RX_BW_160 : if (he_cap->he_cap_elem.phy_cap_info[0] &
@@ -1895,6 +1900,13 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw,ath11k_mac_txpower_recalc (ar); } +if (changed &BSS_CHANGED_TWT ) { +if (info->twt_requester || info->twt_responder) +ath11k_wmi_send_twt_enable_cmd (ar, ar->pdev_idx); +else +ath11k_wmi_send_twt_disable_cmd (ar, ar->pdev_idx); + } +mutex_unlock (&ar->conf_mutex); }
drivers/net/wireless/ath/ath11k/wmi.c +91 -0
121 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/wmi.h +71 -0
123 lines not on this page · raw message
Signature · 7 lines
2.20.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 5 lines · John Crispin
Add target wait time wmi calls to the driver. En/disable the support from when the
bss_configchanges. We ignore the cmd completion events.Signed-off-by Shashidhar Lakkavalli <[email protected]>Signed-off-by John Crispin <[email protected]>
Marking as requested
Patch set to Awaiting Upstream.
Signature · 9 lines
https://patchwork.kernel.org/patch/11000953/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k