mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
13e967b292
Add empty function for case of CONFIG_NL80211=n: net/wireless/scan.c:35: error: implicit declaration of function 'nl80211_send_scan_aborted' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
37 lines
987 B
C
37 lines
987 B
C
#ifndef __NET_WIRELESS_NL80211_H
|
|
#define __NET_WIRELESS_NL80211_H
|
|
|
|
#include "core.h"
|
|
|
|
#ifdef CONFIG_NL80211
|
|
extern int nl80211_init(void);
|
|
extern void nl80211_exit(void);
|
|
extern void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev);
|
|
extern void nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
|
|
struct net_device *netdev);
|
|
extern void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev,
|
|
struct net_device *netdev);
|
|
#else
|
|
static inline int nl80211_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline void nl80211_exit(void)
|
|
{
|
|
}
|
|
static inline void nl80211_notify_dev_rename(
|
|
struct cfg80211_registered_device *rdev)
|
|
{
|
|
}
|
|
static inline void
|
|
nl80211_send_scan_done(struct cfg80211_registered_device *rdev,
|
|
struct net_device *netdev)
|
|
{}
|
|
static inline void nl80211_send_scan_aborted(
|
|
struct cfg80211_registered_device *rdev,
|
|
struct net_device *netdev)
|
|
{}
|
|
#endif /* CONFIG_NL80211 */
|
|
|
|
#endif /* __NET_WIRELESS_NL80211_H */
|