Re: [PATCH] wcn36xx: Disable 5GHz for wcn3610

From: Ramon Fried
Date: Thu Mar 29 2018 - 03:00:47 EST




On 3/29/2018 9:58 AM, RafaÅ MiÅecki wrote:
> On 03/29/2018 08:20 AM, Ramon Fried wrote:
>> wcn3610 can only operate on 2.4GHz band due to RF limitation.
>> If wcn36xx digital block is associated with an external IRIS
>> RF module, retrieve the id and disable 5GHz band in case of
>> wcn3610 id.
>>
>> Signed-off-by: Ramon Fried <rfried@xxxxxxxxxxxxxx>
>> ---
>> Âdrivers/net/wireless/ath/wcn36xx/main.cÂÂÂ | 4 +++-
>> Âdrivers/net/wireless/ath/wcn36xx/wcn36xx.h | 1 +
>> Â2 files changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
>> index ab5be6d2c691..833531a68c95 100644
>> --- a/drivers/net/wireless/ath/wcn36xx/main.c
>> +++ b/drivers/net/wireless/ath/wcn36xx/main.c
>> @@ -1146,7 +1146,7 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
>> ÂÂÂÂÂÂÂÂ BIT(NL80211_IFTYPE_MESH_POINT);
>>
>> ÂÂÂÂ wcn->hw->wiphy->bands[NL80211_BAND_2GHZ] = &wcn_band_2ghz;
>> -ÂÂÂ if (wcn->rf_id != RF_IRIS_WCN3620)
>> +ÂÂÂ if (wcn->rf_id != RF_IRIS_WCN3610 && wcn->rf_id != RF_IRIS_WCN3620)
>> ÂÂÂÂÂÂÂÂ wcn->hw->wiphy->bands[NL80211_BAND_5GHZ] = &wcn_band_5ghz;
>>
>> ÂÂÂÂ wcn->hw->wiphy->max_scan_ssids = WCN36XX_MAX_SCAN_SSIDS;
>> @@ -1248,6 +1248,8 @@ static int wcn36xx_platform_get_resources(struct wcn36xx *wcn,
>> ÂÂÂÂ if (iris_node) {
>> ÂÂÂÂÂÂÂÂ if (of_device_is_compatible(iris_node, "qcom,wcn3620"))
>> ÂÂÂÂÂÂÂÂÂÂÂÂ wcn->rf_id = RF_IRIS_WCN3620;
>> +ÂÂÂÂÂÂÂ else if (of_device_is_compatible(iris_node, "qcom,wcn3610"))
>> +ÂÂÂÂÂÂÂÂÂÂÂ wcn->rf_id = RF_IRIS_WCN3620;
>
> RF_IRIS_WCN3610 ?
You're correct. I also noticed just now.
Sent v2. Thanks.
>
> _______________________________________________
> wcn36xx mailing list
> wcn36xx@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/wcn36xx