diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2016-08-19 22:02:48 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2016-08-30 08:05:28 +0200 |
commit | 61aaa0e8c1c15d9e045f0577f046be50f2f571ab (patch) | |
tree | 8741f70b066c5414de90c153b44fa6f958409929 /include | |
parent | 554d072e7bc3e56de5893c8181110a547b2062c9 (diff) | |
download | linux-stable-61aaa0e8c1c15d9e045f0577f046be50f2f571ab.tar.gz linux-stable-61aaa0e8c1c15d9e045f0577f046be50f2f571ab.tar.bz2 linux-stable-61aaa0e8c1c15d9e045f0577f046be50f2f571ab.zip |
cfg80211: Add stub for cfg80211_get_station()
This allows modules using this function (currently: batman-adv) to
compile even if cfg80211 is not built at all, thus relaxing
dependencies.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 9c23f4d33e06..beb7610d64e9 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -1102,6 +1102,7 @@ struct station_info { struct cfg80211_tid_stats pertid[IEEE80211_NUM_TIDS + 1]; }; +#if IS_ENABLED(CONFIG_CFG80211) /** * cfg80211_get_station - retrieve information about a given station * @dev: the device where the station is supposed to be connected to @@ -1114,6 +1115,14 @@ struct station_info { */ int cfg80211_get_station(struct net_device *dev, const u8 *mac_addr, struct station_info *sinfo); +#else +static inline int cfg80211_get_station(struct net_device *dev, + const u8 *mac_addr, + struct station_info *sinfo) +{ + return -ENOENT; +} +#endif /** * enum monitor_flags - monitor flags |