From: Benjamin Li Date: Mon, 25 Oct 2021 17:53:57 +0000 (-0700) Subject: wcn36xx: switch on antenna diversity feature bit X-Git-Tag: v6.6.17~8491^2~250^2~33^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8e12f315f81871d12356f1723fd9b5e1c3fcb9a;p=platform%2Fkernel%2Flinux-rpi.git wcn36xx: switch on antenna diversity feature bit The official feature-complete WCN3680B driver (known as prima, open source but not upstream) sends this feature bit. As we wish to support the antenna diversity feature in upstream, we need to set this bit as well. Signed-off-by: Benjamin Li Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20211025175359.3591048-2-benl@squareup.com --- diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c index e1f4a5d..b18ab21 100644 --- a/drivers/net/wireless/ath/wcn36xx/smd.c +++ b/drivers/net/wireless/ath/wcn36xx/smd.c @@ -2476,8 +2476,10 @@ int wcn36xx_smd_feature_caps_exchange(struct wcn36xx *wcn) INIT_HAL_MSG(msg_body, WCN36XX_HAL_FEATURE_CAPS_EXCHANGE_REQ); set_feat_caps(msg_body.feat_caps, STA_POWERSAVE); - if (wcn->rf_id == RF_IRIS_WCN3680) + if (wcn->rf_id == RF_IRIS_WCN3680) { set_feat_caps(msg_body.feat_caps, DOT11AC); + set_feat_caps(msg_body.feat_caps, ANTENNA_DIVERSITY_SELECTION); + } PREPARE_HAL_BUF(wcn->hal_buf, msg_body);