Commit 240e86ef authored by Lennert Buytenhek's avatar Lennert Buytenhek Committed by John W. Linville

mwl8k: ->add_interface() is not called for monitor interfaces

There is no need to check for NL80211_IFTYPE_MONITOR in
->add_interface(), as this function is never called for monitor
interfaces.  Also, there is no need to advertise this bit in our
wiphy's ->interface_modes.
Signed-off-by: default avatarLennert Buytenhek <buytenh@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e81cd2d6
...@@ -2883,8 +2883,7 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw, ...@@ -2883,8 +2883,7 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw,
/* /*
* We only support managed interfaces for now. * We only support managed interfaces for now.
*/ */
if (conf->type != NL80211_IFTYPE_STATION && if (conf->type != NL80211_IFTYPE_STATION)
conf->type != NL80211_IFTYPE_MONITOR)
return -EINVAL; return -EINVAL;
/* Clean out driver private area */ /* Clean out driver private area */
...@@ -3440,8 +3439,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev, ...@@ -3440,8 +3439,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
hw->queues = MWL8K_TX_QUEUES; hw->queues = MWL8K_TX_QUEUES;
hw->wiphy->interface_modes = hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_MONITOR);
/* Set rssi and noise values to dBm */ /* Set rssi and noise values to dBm */
hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_NOISE_DBM; hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_NOISE_DBM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment