]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/net/wireless/ath/ath9k/virtual.c
ath9k: pass the ieee80211_hw on radio enable/disable
[mv-sheeva.git] / drivers / net / wireless / ath / ath9k / virtual.c
index 7678c4a2ca6f6252b358a3e68472fede96d4e69d..69a871ba051f694dedec209b9dfdbe17c8306796 100644 (file)
@@ -526,8 +526,9 @@ int ath9k_wiphy_select(struct ath_wiphy *aphy)
                         * frame being completed)
                         */
                        spin_unlock_bh(&sc->wiphy_lock);
-                       ath_radio_disable(sc);
-                       ath_radio_enable(sc);
+                       ath_radio_disable(sc, aphy->hw);
+                       ath_radio_enable(sc, aphy->hw);
+                       /* Only the primary wiphy hw is used for queuing work */
                        ieee80211_queue_work(aphy->sc->hw,
                                   &aphy->sc->chan_work);
                        return -EBUSY; /* previous select still in progress */