diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 1f7222aef89f..b39c7bc41143 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1581,6 +1581,14 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
1581 | } | 1581 | } |
1582 | } | 1582 | } |
1583 | 1583 | ||
1584 | if (changed & IEEE80211_CONF_CHANGE_MONITOR) { | ||
1585 | if (conf->flags & IEEE80211_CONF_MONITOR) { | ||
1586 | ath_print(common, ATH_DBG_CONFIG, | ||
1587 | "HW opmode set to Monitor mode\n"); | ||
1588 | sc->sc_ah->opmode = NL80211_IFTYPE_MONITOR; | ||
1589 | } | ||
1590 | } | ||
1591 | |||
1584 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { | 1592 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { |
1585 | struct ieee80211_channel *curchan = hw->conf.channel; | 1593 | struct ieee80211_channel *curchan = hw->conf.channel; |
1586 | int pos = curchan->hw_value; | 1594 | int pos = curchan->hw_value; |