ath9k: Fix IBSS joiner mode
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 4 Feb 2013 10:08:24 +0000 (15:38 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Feb 2013 20:34:56 +0000 (15:34 -0500)
commit1a6404a1d8497692f31808319d662c739033c491
tree4e5c3664fc7e4d7bf41972836da4891c7fab026a
parentdd5ee59bb005df38ca3ee00bc6ac349dc3370e4f
ath9k: Fix IBSS joiner mode

On joining an existing IBSS network, beaconing has to start
only after a TSF sync has happened by receiving a beacon from
the BSS. In creator mode, beaconing can start immediately after
a HW reset has been done.

Now that mac80211 notifies the driver of the mode type (creator/joiner)
via ieee80211_bss_conf->ibss_creator, make use of it to properly setup
the HW beacon timers.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/recv.c