diff options
Diffstat (limited to 'net/wireless/chan.c')
-rw-r--r-- | net/wireless/chan.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c index a16cdffb24a..d355f67d0cd 100644 --- a/net/wireless/chan.c +++ b/net/wireless/chan.c | |||
@@ -82,7 +82,6 @@ int cfg80211_set_monitor_channel(struct cfg80211_registered_device *rdev, | |||
82 | int freq, enum nl80211_channel_type chantype) | 82 | int freq, enum nl80211_channel_type chantype) |
83 | { | 83 | { |
84 | struct ieee80211_channel *chan; | 84 | struct ieee80211_channel *chan; |
85 | int err; | ||
86 | 85 | ||
87 | if (!rdev->ops->set_monitor_channel) | 86 | if (!rdev->ops->set_monitor_channel) |
88 | return -EOPNOTSUPP; | 87 | return -EOPNOTSUPP; |
@@ -93,13 +92,7 @@ int cfg80211_set_monitor_channel(struct cfg80211_registered_device *rdev, | |||
93 | if (!chan) | 92 | if (!chan) |
94 | return -EINVAL; | 93 | return -EINVAL; |
95 | 94 | ||
96 | err = rdev->ops->set_monitor_channel(&rdev->wiphy, chan, chantype); | 95 | return rdev->ops->set_monitor_channel(&rdev->wiphy, chan, chantype); |
97 | if (!err) { | ||
98 | rdev->monitor_channel = chan; | ||
99 | rdev->monitor_channel_type = chantype; | ||
100 | } | ||
101 | |||
102 | return err; | ||
103 | } | 96 | } |
104 | 97 | ||
105 | void | 98 | void |