aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4c90c44b8b75..7319f25250b6 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1420,11 +1420,14 @@ struct cfg80211_gtk_rekey_data {
1420 * 1420 *
1421 * @set_txq_params: Set TX queue parameters 1421 * @set_txq_params: Set TX queue parameters
1422 * 1422 *
1423 * @set_channel: Set channel for a given wireless interface. Some devices 1423 * @libertas_set_mesh_channel: Only for backward compatibility for libertas,
1424 * may support multi-channel operation (by channel hopping) so cfg80211 1424 * as it doesn't implement join_mesh and needs to set the channel to
1425 * doesn't verify much. Note, however, that the passed netdev may be 1425 * join the mesh instead.
1426 * %NULL as well if the user requested changing the channel for the 1426 *
1427 * device itself, or for a monitor interface. 1427 * @set_monitor_channel: Set the monitor mode channel for the device. If other
1428 * interfaces are active this callback should reject the configuration.
1429 * If no interfaces are active or the device is down, the channel should
1430 * be stored for when a monitor interface becomes active.
1428 * @get_channel: Get the current operating channel, should return %NULL if 1431 * @get_channel: Get the current operating channel, should return %NULL if
1429 * there's no single defined operating channel if for example the 1432 * there's no single defined operating channel if for example the
1430 * device implements channel hopping for multi-channel virtual interfaces. 1433 * device implements channel hopping for multi-channel virtual interfaces.
@@ -1614,9 +1617,13 @@ struct cfg80211_ops {
1614 int (*set_txq_params)(struct wiphy *wiphy, struct net_device *dev, 1617 int (*set_txq_params)(struct wiphy *wiphy, struct net_device *dev,
1615 struct ieee80211_txq_params *params); 1618 struct ieee80211_txq_params *params);
1616 1619
1617 int (*set_channel)(struct wiphy *wiphy, struct net_device *dev, 1620 int (*libertas_set_mesh_channel)(struct wiphy *wiphy,
1618 struct ieee80211_channel *chan, 1621 struct net_device *dev,
1619 enum nl80211_channel_type channel_type); 1622 struct ieee80211_channel *chan);
1623
1624 int (*set_monitor_channel)(struct wiphy *wiphy,
1625 struct ieee80211_channel *chan,
1626 enum nl80211_channel_type channel_type);
1620 1627
1621 int (*scan)(struct wiphy *wiphy, struct net_device *dev, 1628 int (*scan)(struct wiphy *wiphy, struct net_device *dev,
1622 struct cfg80211_scan_request *request); 1629 struct cfg80211_scan_request *request);
@@ -2325,7 +2332,6 @@ struct wireless_dev {
2325 spinlock_t event_lock; 2332 spinlock_t event_lock;
2326 2333
2327 struct cfg80211_internal_bss *current_bss; /* associated / joined */ 2334 struct cfg80211_internal_bss *current_bss; /* associated / joined */
2328 struct ieee80211_channel *channel;
2329 struct ieee80211_channel *preset_chan; 2335 struct ieee80211_channel *preset_chan;
2330 enum nl80211_channel_type preset_chantype; 2336 enum nl80211_channel_type preset_chantype;
2331 2337