diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index a961b698c691..301d2a20d42b 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -2883,8 +2883,7 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw, | |||
2883 | /* | 2883 | /* |
2884 | * We only support managed interfaces for now. | 2884 | * We only support managed interfaces for now. |
2885 | */ | 2885 | */ |
2886 | if (conf->type != NL80211_IFTYPE_STATION && | 2886 | if (conf->type != NL80211_IFTYPE_STATION) |
2887 | conf->type != NL80211_IFTYPE_MONITOR) | ||
2888 | return -EINVAL; | 2887 | return -EINVAL; |
2889 | 2888 | ||
2890 | /* Clean out driver private area */ | 2889 | /* Clean out driver private area */ |
@@ -3440,8 +3439,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, | |||
3440 | 3439 | ||
3441 | hw->queues = MWL8K_TX_QUEUES; | 3440 | hw->queues = MWL8K_TX_QUEUES; |
3442 | 3441 | ||
3443 | hw->wiphy->interface_modes = | 3442 | hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); |
3444 | BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_MONITOR); | ||
3445 | 3443 | ||
3446 | /* Set rssi and noise values to dBm */ | 3444 | /* Set rssi and noise values to dBm */ |
3447 | hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_NOISE_DBM; | 3445 | hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_NOISE_DBM; |