[PATCH] In AP mode delete bss when BEACON is disabled

Eugene Krasnikov k.eugene.e at gmail.com
Tue Aug 13 02:05:18 EDT 2013


Delete bss when AP mode is stopped to put HW in initial state.

Signed-off-by: Eugene Krasnikov <k.eugene.e at gmail.com>
---
 main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c
index 8aaa611..ad7b5ba 100644
--- a/main.c
+++ b/main.c
@@ -618,7 +618,9 @@ static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,
 			wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr,
 						link_state);
 		} else {
-			/* FIXME: disable beaconing */
+			wcn36xx_smd_set_link_st(wcn, vif->addr, vif->addr,
+						WCN36XX_HAL_LINK_IDLE_STATE);
+			wcn36xx_smd_delete_bss(wcn);
 		}
 	}
 out:
-- 
1.8.2.2




More information about the wcn36xx mailing list