Re: [PATCH] Select WIRELESS_EXT for the rndis_wlan driver tocompile

From: Jussi Kivilinna
Date: Tue May 18 2010 - 02:47:14 EST


Hi,

Thanks for reporting. Correct way to fix this is to replace wireless_send_event() with cfg80211_disconnect(). I'll post patch soon.

-Jussi

Quoting "RogÃrio Brito" <rbrito@xxxxxxxxxx>:

The rndis_wlan.ko module needs the function wireless_send_event, which
is not included if the option WIRELESS_EXT is not selected by the
driver. Otherwise, the user gets compilation problems like:

,----
| (...)
| Kernel: arch/x86/boot/bzImage is ready (#3)
| Building modules, stage 2.
| MODPOST 427 modules
| ERROR: "wireless_send_event" [drivers/net/wireless/rndis_wlan.ko] undefined!
| make[1]: *** [__modpost] Error 1
| make: *** [modules] Error 2
`----
---

I don't know if this is a proper fix, but I would love to know a better
solution to the problem.

drivers/net/wireless/Kconfig | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
index 5889436..0d5fff4 100644
--- a/drivers/net/wireless/Kconfig
+++ b/drivers/net/wireless/Kconfig
@@ -186,6 +186,7 @@ config USB_NET_RNDIS_WLAN
tristate "Wireless RNDIS USB support"
depends on USB && EXPERIMENTAL
depends on CFG80211
+ select WIRELESS_EXT
select USB_USBNET
select USB_NET_CDCETHER
select USB_NET_RNDIS_HOST
--
1.7.1





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