Skip to content

Commit 285bb17

Browse files
0xB0DKalle Valo
authored andcommitted
Revert "wcn36xx: Disable bmps when encryption is disabled"
This reverts commit c6522a5. Testing on tip-of-tree shows that this is working now. Revert this and re-enable BMPS for Open APs. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20211022140447.2846248-3-bryan.odonoghue@linaro.org
1 parent 2f1ae32 commit 285bb17

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

drivers/net/wireless/ath/wcn36xx/main.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -613,15 +613,6 @@ static int wcn36xx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
613613
}
614614
}
615615
}
616-
/* FIXME: Only enable bmps support when encryption is enabled.
617-
* For any reasons, when connected to open/no-security BSS,
618-
* the wcn36xx controller in bmps mode does not forward
619-
* 'wake-up' beacons despite AP sends DTIM with station AID.
620-
* It could be due to a firmware issue or to the way driver
621-
* configure the station.
622-
*/
623-
if (vif->type == NL80211_IFTYPE_STATION)
624-
vif_priv->allow_bmps = true;
625616
break;
626617
case DISABLE_KEY:
627618
if (!(IEEE80211_KEY_FLAG_PAIRWISE & key_conf->flags)) {
@@ -922,7 +913,6 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,
922913
vif->addr,
923914
bss_conf->aid);
924915
vif_priv->sta_assoc = false;
925-
vif_priv->allow_bmps = false;
926916
wcn36xx_smd_set_link_st(wcn,
927917
bss_conf->bssid,
928918
vif->addr,

drivers/net/wireless/ath/wcn36xx/pmc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ int wcn36xx_pmc_enter_bmps_state(struct wcn36xx *wcn,
2525
{
2626
int ret = 0;
2727
struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
28-
29-
if (!vif_priv->allow_bmps)
30-
return -ENOTSUPP;
31-
28+
/* TODO: Make sure the TX chain clean */
3229
ret = wcn36xx_smd_enter_bmps(wcn, vif);
3330
if (!ret) {
3431
wcn36xx_dbg(WCN36XX_DBG_PMC, "Entered BMPS\n");

drivers/net/wireless/ath/wcn36xx/wcn36xx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ struct wcn36xx_vif {
128128
enum wcn36xx_hal_bss_type bss_type;
129129

130130
/* Power management */
131-
bool allow_bmps;
132131
enum wcn36xx_power_state pw_state;
133132

134133
u8 bss_index;

0 commit comments

Comments
 (0)