ath11k: add HE support
cover ath11k: add HE support
This series adds HE support for the ath11k driver. These patches were previously sent and this is a rebase on ontop of ath11k-post-bringup.
*** BLURB HERE ***
John Crispin (3):
ath11k: add HE support
ath11k: add TWT support
ath11k: add spatial reuse support
Sven Eckelmann (1):
ath11k: register HE mesh capabilities
drivers/net/wireless/ath/ath11k/core.h | 2 + drivers/net/wireless/ath/ath11k/mac.c | 336 ++++++++++++++++++++++++- drivers/net/wireless/ath/ath11k/reg.c | 1 + drivers/net/wireless/ath/ath11k/wmi.c | 132 +++++++++- drivers/net/wireless/ath/ath11k/wmi.h | 93 ++++++- 5 files changed, 554 insertions(+), 10 deletions(-)
Signature · 7 lines
2.20.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 1/4 ath11k: add HE support
Add basic HE support to the driver. The sband_iftype data is generated from the capabilities read from the FW.
--- drivers/net/wireless/ath/ath11k/core.h | 2 + drivers/net/wireless/ath/ath11k/mac.c | 258 ++++++++++++++++++++++++- drivers/net/wireless/ath/ath11k/reg.c | 1 + drivers/net/wireless/ath/ath11k/wmi.c | 6 +- drivers/net/wireless/ath/ath11k/wmi.h | 6 +- 5 files changed, 263 insertions(+), 10 deletions(-)
drivers/net/wireless/ath/ath11k/core.h +2 -0
@@ -431,6 +431,8 @@ struct ath11k {struct {struct ieee80211_supported_band sbands[NUM_NL80211_BANDS ]; +struct ieee80211_sband_iftype_data + iftype[NUM_NL80211_BANDS ][NUM_NL80211_IFTYPES ]; } mac;unsigned long dev_flags;unsigned int filter_flags;
drivers/net/wireless/ath/ath11k/mac.c +250 -8
309 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/reg.c +1 -0
@@ -141,6 +141,7 @@ int ath11k_reg_update_chan_list(struct ath11k *ar)/* TODO: Set to true/false based on some condition? */ ch->allow_ht = true; ch->allow_vht = true; + ch->allow_he = true; ch->dfs_set = !!(channel->flags &IEEE80211_CHAN_RADAR );
drivers/net/wireless/ath/ath11k/wmi.c +5 -1
@@ -753,6 +753,8 @@ static void ath11k_wmi_put_wmi_channel(struct wmi_channel *chan, chan->info |=WMI_CHAN_INFO_ALLOW_HT ;if (arg->channel.allow_vht) chan->info |=WMI_CHAN_INFO_ALLOW_VHT ; +if (arg->channel.allow_he) + chan->info |=WMI_CHAN_INFO_ALLOW_HE ;if (arg->channel.ht40plus) chan->info |=WMI_CHAN_INFO_HT40_PLUS ;if (arg->channel.chan_radar)
@@ -2150,7 +2152,9 @@ int ath11k_wmi_send_scan_chan_list_cmd(struct ath11k *ar,if (tchan_info->is_chan_passive) chan_info->info |=WMI_CHAN_INFO_PASSIVE ; -if (tchan_info->allow_vht) +if (tchan_info->allow_he) + chan_info->info |=WMI_CHAN_INFO_ALLOW_HE ; +else if (tchan_info->allow_vht) chan_info->info |=WMI_CHAN_INFO_ALLOW_VHT ;else if (tchan_info->allow_ht) chan_info->info |=WMI_CHAN_INFO_ALLOW_HT ;
drivers/net/wireless/ath/ath11k/wmi.h +5 -1
@@ -2445,6 +2445,7 @@ struct channel_param { is_chan_passive:1, allow_ht:1, allow_vht:1, + allow_he:1, set_agile:1;u32 phy_mode;u32 cfreq1;
@@ -3334,7 +3335,10 @@ struct wmi_vdev_install_key_arg {#define WMI_MAX_SUPPORTED_RATES 128#define WMI_HOST_MAX_HECAP_PHY_SIZE 3 -#define WMI_HOST_MAX_HE_RATE_SET 1 +#define WMI_HOST_MAX_HE_RATE_SET 3 +#define WMI_HECAP_TXRX_MCS_NSS_IDX_80 0 +#define WMI_HECAP_TXRX_MCS_NSS_IDX_160 1 +#define WMI_HECAP_TXRX_MCS_NSS_IDX_80_80 2struct wmi_rate_set_arg {u32 num_rates;
Signature · 7 lines
2.20.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · John Crispin
Add basic HE support to the driver. The
sband_iftypedata is generated from the capabilities read from the FW.Signed-off-by Shashidhar Lakkavalli <[email protected]>Signed-off-by John Crispin <[email protected]>Signed-off-by Kalle Valo <[email protected]>
This added few new warnings below which I fixed in the pending branch, please check:
drivers/net/wireless/ath/ath11k/mac.c:1195:83: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1195:83: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1195:83: got restricted __le16 const [usertype] rx_mcs_80p80drivers/net/wireless/ath/ath11k/mac.c:1197:83: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1197:83: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1197:83: got restricted __le16 const [usertype] tx_mcs_80p80drivers/net/wireless/ath/ath11k/mac.c:1201:73: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1201:73: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1201:73: got restricted __le16 const [usertype] rx_mcs_160drivers/net/wireless/ath/ath11k/mac.c:1203:73: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1203:73: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1203:73: got restricted __le16 const [usertype] tx_mcs_160drivers/net/wireless/ath/ath11k/mac.c:1209:72: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1209:72: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1209:72: got restricted __le16 const [usertype] rx_mcs_80drivers/net/wireless/ath/ath11k/mac.c:1211:72: warning: incorrect type in assignment (different base types)drivers/net/wireless/ath/ath11k/mac.c:1211:72: expected unsigned intdrivers/net/wireless/ath/ath11k/mac.c:1211:72: got restricted __le16 const [usertype] tx_mcs_80drivers/net/wireless/ath/ath11k/mac.c:3352: Alignment should match open parenthesis drivers/net/wireless/ath/ath11k/mac.c:3360: Alignment should match open parenthesis
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · John Crispin
Add basic HE support to the driver. The
sband_iftypedata is generated from the capabilities read from the FW.Signed-off-by Shashidhar Lakkavalli <[email protected]>Signed-off-by John Crispin <[email protected]>Signed-off-by Kalle Valo <[email protected]>
[...]
Quoted 8 lines
drivers/net/wireless/ath/ath11k/mac.c +8
-0+for (nss =0 ; nss <= arg->peer_ppet.numss_m1; nss++) { +for (ru =0 ; ru <4 ; ru++) { +u32 val =0 ; +int i; + +if ((arg->peer_ppet.ru_bit_mask &BIT (ru)) ==0 ) +continue ; +for (i =0 ; i <6 ; i++) {
drivers/net/wireless/ath/ath11k/mac.c static void ath11k_peer_assoc_h_he(struct ath11k *ar, · line 1189
Quoted 10 lines
drivers/net/wireless/ath/ath11k/mac.c +10
-0+ val >>=1 ; + val |= ((he_cap->ppe_thres[bit /8 ] >> + (bit %8 )) &0x1 ) <<5 ; + bit++; + } + arg->peer_ppet.ppet16_ppet8_ru3_ru0[nss] |= + val << (ru *6 ); + } + } + }
I think this loop needs a code comment explaining what's happening here.
[...]
Quoted 17 lines
drivers/net/wireless/ath/ath11k/mac.c +17
-0+static void ath11k_gen_ppe_thresh (struct ath11k_ppe_threshold *fw_ppet, +u8 *he_ppet) +{ +int nss, ru; +u8 bit =7 ; + + he_ppet[0 ] = fw_ppet->numss_m1 &IEEE80211_PPE_THRES_NSS_MASK ; + he_ppet[0 ] |= (fw_ppet->ru_bit_mask << +IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS ) & +IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK ; +for (nss =0 ; nss <= fw_ppet->numss_m1; nss++) { +for (ru =0 ; ru <4 ; ru++) { +u8 val; +int i; + +if ((fw_ppet->ru_bit_mask &BIT (ru)) ==0 ) +continue ;
drivers/net/wireless/ath/ath11k/mac.c static int ath11k_check_chain_mask(struct ath11k *ar, u32 ant, bool is_tx_ant) · line 3259
Quoted 10 lines
drivers/net/wireless/ath/ath11k/mac.c +10
-0+ val = (fw_ppet->ppet16_ppet8_ru3_ru0[nss] >> (ru *6 )) & +0x3f ; + val = ((val >>3 ) &0x7 ) | ((val &0x7 ) <<3 ); +for (i =5 ; i >=0 ; i--) { + he_ppet[bit /8 ] |= + ((val >> i) &0x1 ) << ((bit %8 )); + bit++; + } + } + }
And this as well.
drivers/net/wireless/ath/ath11k/mac.c static int ath11k_check_chain_mask(struct ath11k *ar, u32 ant, bool is_tx_ant) · line 3331
Quoted 12 lines
drivers/net/wireless/ath/ath11k/mac.c +12
-0+ he_cap->he_mcs_nss_supp.rx_mcs_80 = +cpu_to_le16 (band_cap->he_mcs &0xffff ); + he_cap->he_mcs_nss_supp.tx_mcs_80 = +cpu_to_le16 (band_cap->he_mcs &0xffff ); + he_cap->he_mcs_nss_supp.rx_mcs_160 = +cpu_to_le16 ((band_cap->he_mcs >>16 ) &0xffff ); + he_cap->he_mcs_nss_supp.tx_mcs_160 = +cpu_to_le16 ((band_cap->he_mcs >>16 ) &0xffff ); + he_cap->he_mcs_nss_supp.rx_mcs_80p80 = +cpu_to_le16 ((band_cap->he_mcs >>16 ) &0xffff ); + he_cap->he_mcs_nss_supp.tx_mcs_80p80 = +cpu_to_le16 ((band_cap->he_mcs >>16 ) &0xffff );
We try always have proper defines for the magic values and using FIELD_GET() instead of manually shifting.
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 6 lines · John Crispin
Add basic HE support to the driver. The
sband_iftypedata is generated from the capabilities read from the FW.Signed-off-by Shashidhar Lakkavalli <[email protected]>Signed-off-by John Crispin <[email protected]>Signed-off-by Kalle Valo <[email protected]>
3 patches applied to ath11k-post-bringup branch of ath.git, thanks.
7c7ed585ad7b ath11k: add HE supporte65a616f4e74 ath11k: add TWT supportf73f939a61a1 ath11k: add spatial reuse support
Signature · 9 lines
https://patchwork.kernel.org/patch/11129761/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 5 lines · Kalle Valo
Quoted 3 lines · John Crispin
Add basic HE support to the driver. The
sband_iftypedata is generated from the capabilities read from the FW.
Quoted 9 lines
Quoted 3 lines
Signed-off-by Shashidhar Lakkavalli <[email protected]>Signed-off-by John Crispin <[email protected]>Signed-off-by Kalle Valo <[email protected]>3 patches applied to ath11k-post-bringup branch of ath.git, thanks.
7c7ed585ad7bath11k: add HE supporte65a616f4e74ath11k: add TWT supportf73f939a61a1ath11k: add spatial reuse support
*firework*
_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 2/4 ath11k: add TWT support
In reply to John CrispinAdd target wait time wmi calls to the driver. En/disable the support from when the bss_config changes. We ignore the cmd completion events.
--- 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
@@ -1188,6 +1188,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] &
@@ -1897,6 +1902,13 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, !ath11k_mac_vif_chan(arvif->vif, &def))ath11k_recalculate_mgmt_rate (ar, vif, &def); +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
PATCH 3/4 ath11k: add spatial reuse support
In reply to John CrispinTrigger the WMI call en/disabling OBSS PD when the bss config changes or we assoc to an AP that broadcasts the IE.
--- drivers/net/wireless/ath/ath11k/mac.c | 10 ++++++++ drivers/net/wireless/ath/ath11k/wmi.c | 35 +++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/wmi.h | 16 ++++++++++++ 3 files changed, 61 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +10 -0
@@ -1605,6 +1605,12 @@ static void ath11k_bss_assoc(struct ieee80211_hw *hw, 1);if (ret)ath11k_warn (ar->ab,"Unable to authorize BSS peer: %d\n" , ret); + + ret =ath11k_wmi_send_obss_spr_cmd (ar, arvif->vdev_id, + &bss_conf->he_obss_pd); +if (ret) +ath11k_warn (ar->ab,"failed to set vdev %i OBSS PD parameters: %d\n" , + arvif->vdev_id, ret); } static void ath11k_bss_disassoc(struct ieee80211_hw *hw,
@@ -1909,6 +1915,10 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw,ath11k_wmi_send_twt_disable_cmd (ar, ar->pdev_idx); } +if (changed &BSS_CHANGED_HE_OBSS_PD ) +ath11k_wmi_send_obss_spr_cmd (ar, arvif->vdev_id, + &info->he_obss_pd); +mutex_unlock (&ar->conf_mutex); }
drivers/net/wireless/ath/ath11k/wmi.c +35 -0
@@ -2541,6 +2541,41 @@ ath11k_wmi_send_twt_disable_cmd(struct ath11k *ar, u32 pdev_id)return ret; } +int +ath11k_wmi_send_obss_spr_cmd (struct ath11k *ar,u32 vdev_id, +struct ieee80211_he_obss_pd *he_obss_pd) +{ +struct ath11k_pdev_wmi *wmi = ar->wmi; +struct ath11k_base *ab = wmi->wmi_sc->ab; +struct wmi_obss_spatial_reuse_params_cmd *cmd; +struct sk_buff *skb; +int ret, len; + + len =sizeof (*cmd); + + skb =ath11k_wmi_alloc_skb (wmi->wmi_sc, len); +if (!skb) +return -ENOMEM ; + + cmd = (void *)skb->data; + cmd->tlv_header =FIELD_PREP (WMI_TLV_TAG , +WMI_TAG_OBSS_SPATIAL_REUSE_SET_CMD ) | +FIELD_PREP (WMI_TLV_LEN , len -TLV_HDR_SIZE ); + cmd->vdev_id = vdev_id; + cmd->enable = he_obss_pd->enable; + cmd->obss_min = he_obss_pd->min_offset; + cmd->obss_max = he_obss_pd->max_offset; + + ret =ath11k_wmi_cmd_send (wmi, skb, +WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID ); +if (ret) { +ath11k_warn (ab, +"Failed to send WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID" ); +dev_kfree_skb (skb); + } +return ret; +} +static void ath11k_fill_band_to_mac_param (struct ath11k_base *soc,struct wmi_host_pdev_band_to_mac *band_to_mac)
drivers/net/wireless/ath/ath11k/wmi.h +16 -0
@@ -172,6 +172,8 @@ enum wmi_cmd_group {WMI_GRP_WLM ,/* 0x3c */ WMI_GRP_11K_OFFLOAD ,/* 0x3d */ WMI_GRP_TWT ,/* 0x3e */ +WMI_GRP_MOTION_DET ,/* 0x3f */ + WMI_GRP_SPATIAL_REUSE, /* 0x40 */ };
@@ -540,6 +542,9 @@ enum wmi_tlv_cmd_id {WMI_TWT_DEL_DIALOG_CMDID ,WMI_TWT_PAUSE_DIALOG_CMDID ,WMI_TWT_RESUME_DIALOG_CMDID , +WMI_PDEV_OBSS_PD_SPATIAL_REUSE_CMDID = +WMI_TLV_CMD (WMI_GRP_SPATIAL_REUSE ), + WMI_PDEV_OBSS_PD_SPATIAL_REUSE_SET_DEF_OBSS_THRESH_CMDID, }; enum wmi_tlv_event_id {
@@ -4560,6 +4565,15 @@ struct wmi_twt_disable_params_cmd {u32 pdev_id; }; +struct wmi_obss_spatial_reuse_params_cmd { +u32 tlv_header; +u32 pdev_id; +u32 enable; +s32 obss_min; +s32 obss_max; +u32 vdev_id; +}; +struct target_resource_config {u32 num_vdevs;u32 num_peers;
@@ -4747,4 +4761,6 @@ void ath11k_wmi_fw_stats_fill(struct ath11k *ar,int ath11k_wmi_simulate_radar (struct ath11k *ar);int ath11k_wmi_send_twt_enable_cmd (struct ath11k *ar,u32 pdev_id);int ath11k_wmi_send_twt_disable_cmd (struct ath11k *ar,u32 pdev_id); +int ath11k_wmi_send_obss_spr_cmd (struct ath11k *ar,u32 vdev_id, +struct ieee80211_he_obss_pd *he_obss_pd);#endif
Signature · 7 lines
2.20.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Re: [PATCH 3/4] ath11k: add spatial reuse support
Quoted 4 lines · John Crispin
Trigger the WMI call en/disabling OBSS PD when the bss config changes or we assoc to an AP that broadcasts the IE.
Signed-off-by John Crispin <[email protected]>
I fixed this checkpatch warning in pending branch:
drivers/net/wireless/ath/ath11k/wmi.c:2573: Alignment should match open parenthesis
Signature · 6 lines
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
PATCH 4/4 ath11k: register HE mesh capabilities
In reply to John CrispinFrom: Sven Eckelmann <[email protected]>
The capabilities for the HE mesh are generated from the capabilities reported by the fw. But the firmware only reports the overall capabilities and not the one which are specific for mesh. Some of them (TWT, MU UL/DL, TB PPDU, ...) require an infrastructure setup with a main STA (AP) controlling the operations. This is not the case for mesh and thus these capabilities are removed from the list of capabilities.
Forwarded: https://patchwork.kernel.org/patch/11029297/
--- drivers/net/wireless/ath/ath11k/mac.c | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+)
drivers/net/wireless/ath/ath11k/mac.c +56 -0
@@ -3297,6 +3297,7 @@ static int ath11k_mac_copy_he_cap(struct ath11k *ar,switch (i) {case NL80211_IFTYPE_STATION :case NL80211_IFTYPE_AP : +case NL80211_IFTYPE_MESH_POINT :break ;default :
@@ -3337,6 +3338,61 @@ static int ath11k_mac_copy_he_cap(struct ath11k *ar, he_cap_elem->phy_cap_info[9 ] |=IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU ;break ; +case NL80211_IFTYPE_MESH_POINT : + he_cap_elem->mac_cap_info[0 ] &= + ~(IEEE80211_HE_MAC_CAP0_TWT_RES | +IEEE80211_HE_MAC_CAP0_TWT_REQ ); + he_cap_elem->mac_cap_info[2 ] &= + ~(IEEE80211_HE_MAC_CAP2_TRS | +IEEE80211_HE_MAC_CAP2_BCAST_TWT | +IEEE80211_HE_MAC_CAP2_MU_CASCADING ); + he_cap_elem->mac_cap_info[3 ] &= + ~(IEEE80211_HE_MAC_CAP3_FLEX_TWT_SCHED | +IEEE80211_HE_MAC_CAP2_BCAST_TWT | +IEEE80211_HE_MAC_CAP2_MU_CASCADING ); + he_cap_elem->mac_cap_info[4 ] &= + ~(IEEE80211_HE_MAC_CAP4_BSRP_BQRP_A_MPDU_AGG | +IEEE80211_HE_MAC_CAP4_BQR ); + he_cap_elem->mac_cap_info[5 ] &= + ~(IEEE80211_HE_MAC_CAP5_SUBCHAN_SELECVITE_TRANSMISSION | + IEEE80211_HE_MAC_CAP5_UL_2x996_TONE_RU | +IEEE80211_HE_MAC_CAP5_PUNCTURED_SOUNDING | +IEEE80211_HE_MAC_CAP5_HT_VHT_TRIG_FRAME_RX ); + + he_cap_elem->phy_cap_info[2 ] &= + ~(IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO | +IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO ); + he_cap_elem->phy_cap_info[3 ] &= + ~(IEEE80211_HE_PHY_CAP3_RX_HE_MU_PPDU_FROM_NON_AP_STA | +IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK | +IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK ); + he_cap_elem->phy_cap_info[4 ] &= + ~IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER ; + he_cap_elem->phy_cap_info[5 ] &= + ~IEEE80211_HE_PHY_CAP5_NG16_MU_FEEDBACK ; + he_cap_elem->phy_cap_info[6 ] &= + ~(IEEE80211_HE_PHY_CAP6_CODEBOOK_SIZE_75_MU | +IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB | +IEEE80211_HE_PHY_CAP6_TRIG_CQI_FB | +IEEE80211_HE_PHY_CAP6_PARTIAL_BANDWIDTH_DL_MUMIMO ); + he_cap_elem->phy_cap_info[7 ] &= + ~(IEEE80211_HE_PHY_CAP7_SRP_BASED_SR | +IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_AR | +IEEE80211_HE_PHY_CAP7_STBC_TX_ABOVE_80MHZ | +IEEE80211_HE_PHY_CAP7_STBC_RX_ABOVE_80MHZ ); + he_cap_elem->phy_cap_info[8 ] &= + ~(IEEE80211_HE_PHY_CAP8_HE_ER_SU_PPDU_4XLTF_AND_08_US_GI | +IEEE80211_HE_PHY_CAP8_20MHZ_IN_40MHZ_HE_PPDU_IN_2G | +IEEE80211_HE_PHY_CAP8_20MHZ_IN_160MHZ_HE_PPDU | +IEEE80211_HE_PHY_CAP8_80MHZ_IN_160MHZ_HE_PPDU ); + he_cap_elem->phy_cap_info[9 ] &= + ~(IEEE80211_HE_PHY_CAP9_LONGER_THAN_16_SIGB_OFDM_SYM | +IEEE80211_HE_PHY_CAP9_NON_TRIGGERED_CQI_FEEDBACK | +IEEE80211_HE_PHY_CAP9_RX_1024_QAM_LESS_THAN_242_TONE_RU | +IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU | +IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_COMP_SIGB | +IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_NON_COMP_SIGB ); +break ; } he_cap->he_mcs_nss_supp.rx_mcs_80 =
Signature · 7 lines
2.20.1 _______________________________________________ ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Re: [PATCH 4/4] ath11k: register HE mesh capabilities
Quoted 9 lines · On Wednesday, 4 September 2019 11:12:11 CEST John Crispin wrote:
From: Sven Eckelmann <[email protected]>
The capabilities for the HE mesh are generated from the capabilities reported by the fw. But the firmware only reports the overall capabilities and not the one which are specific for mesh. Some of them (TWT, MU UL/DL, TB PPDU, ...) require an infrastructure setup with a main STA (AP) controlling the operations. This is not the case for mesh and thus these capabilities are removed from the list of capabilities.
Quoted 6 lines
Signed-off-by Sven Eckelmann <[email protected]>Forwarded: https://patchwork.kernel.org/patch/11029297/
--- drivers/net/wireless/ath/ath11k/mac.c | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+)
This is the incorrect patch. The correct version can be found at
https://patchwork.kernel.org/project/ath11k/list/?series=159083
drivers/net/wireless/
Quoted 1 line
drivers/net/wireless/ renamed from drivers/net/wireless/ath/ath11k/mac.c +0
-0
ath/ath11k/mac.c
Quoted 59 lines
index
b1964385b206..4d40c9635a4a100644drivers/net/wireless/ath/ath11k/mac.c +45
-0@@ -3297,6 +3297,7 @@ static int ath11k_mac_copy_he_cap(struct ath11k *ar,switch (i) {case NL80211_IFTYPE_STATION :case NL80211_IFTYPE_AP : +case NL80211_IFTYPE_MESH_POINT :break ;default :@@ -3337,6 +3338,61 @@ static int ath11k_mac_copy_he_cap(struct ath11k *ar, he_cap_elem->phy_cap_info[9 ] |=IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU ;break ; +case NL80211_IFTYPE_MESH_POINT : + he_cap_elem->mac_cap_info[0 ] &= + ~(IEEE80211_HE_MAC_CAP0_TWT_RES | +IEEE80211_HE_MAC_CAP0_TWT_REQ ); + he_cap_elem->mac_cap_info[2 ] &= + ~(IEEE80211_HE_MAC_CAP2_TRS | +IEEE80211_HE_MAC_CAP2_BCAST_TWT | +IEEE80211_HE_MAC_CAP2_MU_CASCADING ); + he_cap_elem->mac_cap_info[3 ] &= + ~(IEEE80211_HE_MAC_CAP3_FLEX_TWT_SCHED | +IEEE80211_HE_MAC_CAP2_BCAST_TWT | +IEEE80211_HE_MAC_CAP2_MU_CASCADING ); + he_cap_elem->mac_cap_info[4 ] &= + ~(IEEE80211_HE_MAC_CAP4_BSRP_BQRP_A_MPDU_AGG | +IEEE80211_HE_MAC_CAP4_BQR ); + he_cap_elem->mac_cap_info[5 ] &= + ~(IEEE80211_HE_MAC_CAP5_SUBCHAN_SELECVITE_TRANSMISSION | + IEEE80211_HE_MAC_CAP5_UL_2x996_TONE_RU | +IEEE80211_HE_MAC_CAP5_PUNCTURED_SOUNDING | +IEEE80211_HE_MAC_CAP5_HT_VHT_TRIG_FRAME_RX ); + + he_cap_elem->phy_cap_info[2 ] &= + ~(IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO | +IEEE80211_HE_PHY_CAP2_UL_MU_PARTIAL_MU_MIMO ); + he_cap_elem->phy_cap_info[3 ] &= + ~(IEEE80211_HE_PHY_CAP3_RX_HE_MU_PPDU_FROM_NON_AP_STA | +IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK | +IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK ); + he_cap_elem->phy_cap_info[4 ] &= + ~IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER ; + he_cap_elem->phy_cap_info[5 ] &= + ~IEEE80211_HE_PHY_CAP5_NG16_MU_FEEDBACK ; + he_cap_elem->phy_cap_info[6 ] &= + ~(IEEE80211_HE_PHY_CAP6_CODEBOOK_SIZE_75_MU | +IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB | +IEEE80211_HE_PHY_CAP6_TRIG_CQI_FB | +IEEE80211_HE_PHY_CAP6_PARTIAL_BANDWIDTH_DL_MUMIMO ); + he_cap_elem->phy_cap_info[7 ] &= + ~(IEEE80211_HE_PHY_CAP7_SRP_BASED_SR | +IEEE80211_HE_PHY_CAP7_POWER_BOOST_FACTOR_AR | +IEEE80211_HE_PHY_CAP7_STBC_TX_ABOVE_80MHZ | +IEEE80211_HE_PHY_CAP7_STBC_RX_ABOVE_80MHZ ); + he_cap_elem->phy_cap_info[8] &= + ~(IEEE80211_HE_PHY_CAP8_HE_ER_SU_PPDU_4XLTF_AND_08_US_GI |
drivers/net/wireless/ath/ath11k/mac.c static int ath11k_mac_copy_he_cap(struct ath11k *ar, · line 3394
Quoted 10 lines
drivers/net/wireless/ath/ath11k/mac.c +10
-0+IEEE80211_HE_PHY_CAP8_20MHZ_IN_40MHZ_HE_PPDU_IN_2G | +IEEE80211_HE_PHY_CAP8_20MHZ_IN_160MHZ_HE_PPDU | + IEEE80211_HE_PHY_CAP8_80MHZ_IN_160MHZ_HE_PPDU); + he_cap_elem->phy_cap_info[9] &= + ~(IEEE80211_HE_PHY_CAP9_LONGER_THAN_16_SIGB_OFDM_SYM | + IEEE80211_HE_PHY_CAP9_NON_TRIGGERED_CQI_FEEDBACK | + IEEE80211_HE_PHY_CAP9_RX_1024_QAM_LESS_THAN_242_TONE_RU | + IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU | + IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_COMP_SIGB | +
IEEE80211_HE_PHY_CAP9_RX_FULL_BW_SU_USING_MU_WITH_NON_COMP_SIGB);
drivers/net/wireless/ath/ath11k/mac.c static int ath11k_mac_copy_he_cap(struct ath11k *ar, · line 3398
Quoted 5 lines
drivers/net/wireless/ath/ath11k/mac.c +1
-0+break ; } he_cap->he_mcs_nss_supp.rx_mcs_80 =
_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k