richard kennedy
2007-06-18 09:22:50 UTC
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"
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"