ath9k: simplify beacon configuration for beaconing vifs

As of now beacon configuration is being called multiple times
in bss info change notification. This patch avoids multiple
configuration and make it simpler.

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
此提交包含在:
Rajkumar Manoharan
2012-04-19 19:13:51 +05:30
提交者 John W. Linville
父節點 78241bdcaf
當前提交 ed2578cd24
共有 2 個檔案被更改,包括 23 行新增43 行删除

查看文件

@@ -817,8 +817,10 @@ void ath9k_set_beaconing_status(struct ath_softc *sc, bool status)
{
struct ath_hw *ah = sc->sc_ah;
if (!ath_has_valid_bslot(sc))
if (!ath_has_valid_bslot(sc)) {
sc->sc_flags &= ~SC_OP_BEACONS;
return;
}
ath9k_ps_wakeup(sc);
if (status) {