diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-09 04:30:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-11 12:32:50 -0500 |
commit | e999882a052a2959571989b2db2b51893d23c0bb (patch) | |
tree | cbdb8c0ab84e372a0a9466720a058a9a0745349d /include/net/cfg80211.h | |
parent | 07ef03ee8b280a536b38ccfe512b9556996f0492 (diff) |
mac80211/cfg80211: report monitor channel in wireless extensions
Just add API to get the channel & report it. Trivial really.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index e1ee1416631d..50e3608f5656 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1342,6 +1342,9 @@ struct cfg80211_gtk_rekey_data { | |||
1342 | * doesn't verify much. Note, however, that the passed netdev may be | 1342 | * doesn't verify much. Note, however, that the passed netdev may be |
1343 | * %NULL as well if the user requested changing the channel for the | 1343 | * %NULL as well if the user requested changing the channel for the |
1344 | * device itself, or for a monitor interface. | 1344 | * device itself, or for a monitor interface. |
1345 | * @get_channel: Get the current operating channel, should return %NULL if | ||
1346 | * there's no single defined operating channel if for example the | ||
1347 | * device implements channel hopping for multi-channel virtual interfaces. | ||
1345 | * | 1348 | * |
1346 | * @scan: Request to do a scan. If returning zero, the scan request is given | 1349 | * @scan: Request to do a scan. If returning zero, the scan request is given |
1347 | * the driver, and will be valid until passed to cfg80211_scan_done(). | 1350 | * the driver, and will be valid until passed to cfg80211_scan_done(). |
@@ -1627,6 +1630,8 @@ struct cfg80211_ops { | |||
1627 | 1630 | ||
1628 | int (*probe_client)(struct wiphy *wiphy, struct net_device *dev, | 1631 | int (*probe_client)(struct wiphy *wiphy, struct net_device *dev, |
1629 | const u8 *peer, u64 *cookie); | 1632 | const u8 *peer, u64 *cookie); |
1633 | |||
1634 | struct ieee80211_channel *(*get_channel)(struct wiphy *wiphy); | ||
1630 | }; | 1635 | }; |
1631 | 1636 | ||
1632 | /* | 1637 | /* |