Discussion:
[patch] fix up fedora 7
richard kennedy
2007-06-18 09:22:50 UTC
Permalink
Hi all,

The code does not build correctly on fedora 7 as the wireless extensions
are not enabled. This is because the stock fedora 7 kernel does not have
CONFIG_NET_WIRELESS defined.
This patch changes p80211netdev.c to enable the wext if either
CONFIG_NET_WIRELESS or WIRELESS_EXT is defined.

Also the udev rule does not trigger, so here's a new rule that does
work.

Both of these work for me and it all works under the control of
NetworkManager.

Cheers
Richard

Index: src/p80211/p80211netdev.c
===================================================================
--- src/p80211/p80211netdev.c (revision 1829)
+++ src/p80211/p80211netdev.c (working copy)
@@ -929,7 +929,7 @@
dev->open = p80211knetdev_open;
dev->stop = p80211knetdev_stop;

-#ifdef CONFIG_NET_WIRELESS
+#if defined(CONFIG_NET_WIRELESS) || defined(WIRELESS_EXT)
#if ((WIRELESS_EXT < 17) && (WIRELESS_EXT < 21))
dev->get_wireless_stats = p80211wext_get_wireless_stats;
#endif
Index: etc/udev/rules.d/40-prism2.rules
===================================================================
--- etc/udev/rules.d/40-prism2.rules (revision 1829)
+++ etc/udev/rules.d/40-prism2.rules (working copy)
@@ -1 +1,2 @@
-ACTION=="add",BUS=="usb",DRIVER=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k"
+#ACTION=="add",BUS=="usb",DRIVER=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k"
+KERNEL="wlan*",ACTION=="add",DRIVERS=="prism2_usb" ,RUN+="/etc/wlan/wlan-udev.sh %k"
Solomon Peachy
2007-06-20 14:53:29 UTC
Permalink
Post by richard kennedy
This patch changes p80211netdev.c to enable the wext if either
CONFIG_NET_WIRELESS or WIRELESS_EXT is defined.
It's applied, thanks!
Post by richard kennedy
Also the udev rule does not trigger, so here's a new rule that does
work.
Both of these work for me and it all works under the control of
NetworkManager.
Good, good.

I suppose it's time to make wext the default mode of operation now..

- Solomon
--
Solomon Peachy ***@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
Loading...