diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-06 02:18:22 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:18:17 -0400 |
commit | e8c9bd5b8d807cfe6c923265969a523b1ba1e6c2 (patch) | |
tree | e36cab1a3b2fb25bdc84115e3472a19672045dbe /drivers/net/wireless/orinoco | |
parent | 7c9c46c16d2d1d232f3296924162de293477f017 (diff) |
cfg80211: clarify set_channel APIs
Now that we've removed all uses of the set_channel
API except for the monitor channel and in libertas,
clarify this. Split the libertas mesh use into a
new libertas_set_mesh_channel() operation, just to
keep backward compatibility, and rename the normal
set_channel() to set_monitor_channel().
Also describe the desired set_monitor_channel()
semantics more clearly.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/cfg.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c index f7b15b8934fa..e15675585fb1 100644 --- a/drivers/net/wireless/orinoco/cfg.c +++ b/drivers/net/wireless/orinoco/cfg.c | |||
@@ -160,10 +160,9 @@ static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev, | |||
160 | return err; | 160 | return err; |
161 | } | 161 | } |
162 | 162 | ||
163 | static int orinoco_set_channel(struct wiphy *wiphy, | 163 | static int orinoco_set_monitor_channel(struct wiphy *wiphy, |
164 | struct net_device *netdev, | 164 | struct ieee80211_channel *chan, |
165 | struct ieee80211_channel *chan, | 165 | enum nl80211_channel_type channel_type) |
166 | enum nl80211_channel_type channel_type) | ||
167 | { | 166 | { |
168 | struct orinoco_private *priv = wiphy_priv(wiphy); | 167 | struct orinoco_private *priv = wiphy_priv(wiphy); |
169 | int err = 0; | 168 | int err = 0; |
@@ -286,7 +285,7 @@ static int orinoco_set_wiphy_params(struct wiphy *wiphy, u32 changed) | |||
286 | 285 | ||
287 | const struct cfg80211_ops orinoco_cfg_ops = { | 286 | const struct cfg80211_ops orinoco_cfg_ops = { |
288 | .change_virtual_intf = orinoco_change_vif, | 287 | .change_virtual_intf = orinoco_change_vif, |
289 | .set_channel = orinoco_set_channel, | 288 | .set_monitor_channel = orinoco_set_monitor_channel, |
290 | .scan = orinoco_scan, | 289 | .scan = orinoco_scan, |
291 | .set_wiphy_params = orinoco_set_wiphy_params, | 290 | .set_wiphy_params = orinoco_set_wiphy_params, |
292 | }; | 291 | }; |