Search Linux Wireless

[PATCH] fix cfg80211 modular compile w/o wext-compat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The static inlines that are supposed to be used w/o wext-compat to init
wext-compat were done with the wrong #ifdef. This fixes it.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

---
or rather, this fixes it.

--- wireless-dev.orig/net/wireless/wext.h	2007-02-16 21:51:26.354695664 +0100
+++ wireless-dev/net/wireless/wext.h	2007-02-17 01:46:34.514695664 +0100
@@ -29,10 +29,14 @@ int wireless_process_ioctl(struct ifreq 
 int cfg80211_wext_ioctl(struct ifreq *ifr, unsigned int cmd);
 #ifdef CFG80211_MODULE
 int call_cfg80211_wext_ioctl(struct ifreq *ifr, unsigned int cmd);
+#else
+#define call_cfg80211_wext_ioctl cfg80211_wext_ioctl
+#endif
+
+#if defined(CONFIG_CFG80211_WEXT_COMPAT) && defined(CFG80211_MODULE)
 int cfg80211_wext_init(void);
 void cfg80211_wext_exit(void);
 #else
-#define call_cfg80211_wext_ioctl cfg80211_wext_ioctl
 static inline int cfg80211_wext_init(void)
 {
 	return 0;


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux