ath5k: Adjust opmode when interfaces are removed.
authorBen Greear <greearb@candelatech.com>
Fri, 8 Oct 2010 19:01:15 +0000 (12:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Oct 2010 19:04:19 +0000 (15:04 -0400)
commit62c58fb4316905cd9c1dbf01967935ed5610b45d
tree088cea1c12ac3ad53bd7b75275bcbef4666ce3ba
parent92c68a66a8f73c51f062ae8cae958c86a21fea78
ath5k: Adjust opmode when interfaces are removed.

Otherwise, if there is an AP and a STATION, and AP
is removed, the NIC will not revert back to STATION mode.

Reported-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c