Message ID | 20200910150552.2178882-2-bryan.odonoghue@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Commit | c84515bd8f1c43d574b4fc720182ae51ddc7ba10 |
Delegated to: | Kalle Valo |
Headers | show |
Series | wcn36xx: Add a set of helpers to enable VHT parameter passing | expand |
Bryan O'Donoghue <bryan.odonoghue@linaro.org> wrote: > Add a routine to set some additional default parameters associated with the > V1 data structure. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> 7 patches applied to ath-next branch of ath.git, thanks. c84515bd8f1c wcn36xx: Add wcn36xx_set_default_rates_v1 21ba284ca9f0 wcn36xx: Add wcn36xx_smd_set_sta_default_vht_params() 5a3b4ae1f32f wcn36xx: Add wcn36xx_smd_set_sta_default_ht_ldpc_params() 287c9310eab8 wcn36xx: Add wcn36xx_smd_set_sta_vht_params() 17801df251e8 wcn36xx: Add wcn36xx_smd_set_sta_ht_ldpc_params() 5a32029ad022 wcn36xx: Add wcn36xx_smd_set_bss_vht_params() c05a8bd80c17 wcn36xx: Add wrapper function wcn36xx_smd_set_sta_params_v1()
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index c5e94ba8f941..ab6685dc956b 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -793,6 +793,14 @@ void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates) sizeof(*ofdm_rates) * WCN36XX_HAL_NUM_OFDM_RATES); rates->supported_mcs_set[0] = 0xFF; } + +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates) +{ + rates->op_rate_mode = STA_11ac; + rates->vht_rx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; + rates->vht_tx_mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9; +} + static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *bss_conf, diff --git a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h index d7d349de20e6..2da81d9926c4 100644 --- a/drivers/net/wireless/ath/wcn36xx/wcn36xx.h +++ b/drivers/net/wireless/ath/wcn36xx/wcn36xx.h @@ -271,6 +271,7 @@ static inline bool wcn36xx_is_fw_version(struct wcn36xx *wcn, wcn->fw_revision == revision); } void wcn36xx_set_default_rates(struct wcn36xx_hal_supported_rates *rates); +void wcn36xx_set_default_rates_v1(struct wcn36xx_hal_supported_rates_v1 *rates); static inline struct ieee80211_sta *wcn36xx_priv_to_sta(struct wcn36xx_sta *sta_priv)
Add a routine to set some additional default parameters associated with the V1 data structure. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- drivers/net/wireless/ath/wcn36xx/main.c | 8 ++++++++ drivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 + 2 files changed, 9 insertions(+)