Commit 38709316 authored by Ganapathi Raju's avatar Ganapathi Raju Committed by Kalle Valo

rsi: fix for 40MHZ connection issue.

Radio capabilities packet is not prepared properly for 40MHZ case,
ppe_ack_rate is a two byte variable which is initialized wrongly,
hence we are unable to connect, resolved by assigning it properly.
Signed-off-by: default avatarGanapathi Raju <ganapathi.kondraju@redpinesignals.com>
Signed-off-by: default avatarSushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 92e97123
...@@ -334,20 +334,17 @@ static int rsi_load_radio_caps(struct rsi_common *common) ...@@ -334,20 +334,17 @@ static int rsi_load_radio_caps(struct rsi_common *common)
struct ieee80211_conf *conf = &hw->conf; struct ieee80211_conf *conf = &hw->conf;
if (conf_is_ht40_plus(conf)) { if (conf_is_ht40_plus(conf)) {
radio_caps->radio_cfg_info = radio_caps->ppe_ack_rate =
RSI_CMDDESC_LOWER_20_ENABLE; cpu_to_le16(LOWER_20_ENABLE |
radio_caps->radio_info = (LOWER_20_ENABLE >> 12));
RSI_CMDDESC_LOWER_20_ENABLE;
} else if (conf_is_ht40_minus(conf)) { } else if (conf_is_ht40_minus(conf)) {
radio_caps->radio_cfg_info = radio_caps->ppe_ack_rate =
RSI_CMDDESC_UPPER_20_ENABLE; cpu_to_le16(UPPER_20_ENABLE |
radio_caps->radio_info = (UPPER_20_ENABLE >> 12));
RSI_CMDDESC_UPPER_20_ENABLE;
} else { } else {
radio_caps->radio_cfg_info = radio_caps->ppe_ack_rate =
RSI_CMDDESC_40MHZ; cpu_to_le16((BW_40MHZ << 12) |
radio_caps->radio_info = FULL40M_ENABLE);
RSI_CMDDESC_FULL_40_ENABLE;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment