ath6kl: restart concurrent vifs on failed connect
authorThomas Pedersen <c_tpeder@qca.qualcomm.com>
Fri, 27 Jul 2012 01:11:11 +0000 (18:11 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Oct 2012 08:49:40 +0000 (11:49 +0300)
commitb5495e666d0b83553f6330e7ba33c0cee2271332
tree5db187709d84d53164468789b228664dc541c0d5
parentfd4377b6bacc0f04bb1898f3ccab9510172a7561
ath6kl: restart concurrent vifs on failed connect

When an ath6kl STA vif is issued a connect command, the firmware will
disconnect all other beaconing vifs in preparation for a potential
channel switch. The case where the connect fails is currently unhandled,
so if a connection attempt on a STA vif fails and any vifs were waiting
for a new channel, simply restart the concurrent vifs on their previous
channel.

Requires that we start tracking the last issued channel in ar->last_ch,
which is valid since ath6kl only supports 1 channel at a time.

Also clear the beaconing vif's want_ch_switch bit regardless of whether
channel switch succeeds, to stop recommitting the same failed profile.

Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/main.c