Skip to content

Commit fd5ad4d

Browse files
Loic PoulainKalle Valo
authored andcommitted
wcn36xx: Advertise beacon filtering support in bmps
In bmps mode, beacons are filtered, and firmware is in charge of monitoring the beacons and report changes or loss. mac80211 must be advertised about such change to prevent it's internal timer based beacon monitor to report beacon loss. Fix that by setting/clearing the IEEE80211_VIF_BEACON_FILTER vif flag on bmps entry/exit. Signed-off-by: Loic Poulain <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 404f5de commit fd5ad4d

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/wireless/ath/wcn36xx

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ int wcn36xx_pmc_enter_bmps_state(struct wcn36xx *wcn,
3131
if (!ret) {
3232
wcn36xx_dbg(WCN36XX_DBG_PMC, "Entered BMPS\n");
3333
vif_priv->pw_state = WCN36XX_BMPS;
34+
vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER;
3435
} else {
3536
/*
3637
* One of the reasons why HW will not enter BMPS is because
@@ -55,6 +56,7 @@ int wcn36xx_pmc_exit_bmps_state(struct wcn36xx *wcn,
5556
}
5657
wcn36xx_smd_exit_bmps(wcn, vif);
5758
vif_priv->pw_state = WCN36XX_FULL_POWER;
59+
vif->driver_flags &= ~IEEE80211_VIF_BEACON_FILTER;
5860
return 0;
5961
}
6062

0 commit comments

Comments
 (0)