diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-03-03 12:23:33 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-05 14:39:46 -0500 |
commit | 9580a222b8a371c145d7439c1a289b9e77f8fe31 (patch) | |
tree | 6dd8ba41fe920e029c107bf249b9bb7ff89b03cd /drivers/net/wireless/ath9k/ath9k.h | |
parent | 0e2dedf971f3feefd4d3d3d8cb5c57b1757f1101 (diff) |
ath9k: Make start/stop operations aware of virtual wiphys
Instead of always going through initialization/deinitialization steps,
do this only for the first/last wiphy to not break the other wiphys.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index bc25075913ad..cb9cb7232489 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -627,6 +627,7 @@ struct ath_wiphy { | |||
627 | struct ath_softc *sc; /* shared for all virtual wiphys */ | 627 | struct ath_softc *sc; /* shared for all virtual wiphys */ |
628 | struct ieee80211_hw *hw; | 628 | struct ieee80211_hw *hw; |
629 | enum ath_wiphy_state { | 629 | enum ath_wiphy_state { |
630 | ATH_WIPHY_INACTIVE, | ||
630 | ATH_WIPHY_ACTIVE, | 631 | ATH_WIPHY_ACTIVE, |
631 | ATH_WIPHY_PAUSING, | 632 | ATH_WIPHY_PAUSING, |
632 | ATH_WIPHY_PAUSED, | 633 | ATH_WIPHY_PAUSED, |
@@ -708,5 +709,6 @@ int ath9k_wiphy_pause(struct ath_wiphy *aphy); | |||
708 | int ath9k_wiphy_unpause(struct ath_wiphy *aphy); | 709 | int ath9k_wiphy_unpause(struct ath_wiphy *aphy); |
709 | int ath9k_wiphy_select(struct ath_wiphy *aphy); | 710 | int ath9k_wiphy_select(struct ath_wiphy *aphy); |
710 | void ath9k_wiphy_chan_work(struct work_struct *work); | 711 | void ath9k_wiphy_chan_work(struct work_struct *work); |
712 | bool ath9k_wiphy_started(struct ath_softc *sc); | ||
711 | 713 | ||
712 | #endif /* ATH9K_H */ | 714 | #endif /* ATH9K_H */ |