problems manually setting up wpa_supplicant

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

 



   I have ndiswrapper and wpa_supplicant installed and configured via
a /etc/wpa_supplicant.conf file such that I can make a wireless
connection with...

 /sbin/modprobe ndiswrapper
 /usr/sbin/wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant.conf -d


I end up with what appears to be a usable interface according to ifconfig

wlan0     Link encap:Ethernet  HWaddr 00:0F:66:F2:57:50
          inet6 addr: fe80::20f:66ff:fef2:5750/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:157 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20489 (20.0 KiB)  TX bytes:979 (979.0 b)
          Memory:dfbfe000-dfbfffff

however I am having a lot of trouble getting the network scripts to work.
I have made the following changes to in /etc/sysconfig/network...

--- ifup-wireless.orig  2005-04-15 15:56:36.000000000 -0400
+++ ifup-wireless       2005-08-05 22:16:08.000000000 -0400
@@ -97,3 +97,8 @@
     # use any essid
     iwconfig $DEVICE essid any
 fi
+
+if [ "$WPA" = "yes" ]; then
+    wpa_supplicant -Bw -D${WPA_DRIVER} -c${WPA_CONFFILE} -i$DEVICE
+fi
+
--- /dev/null   2005-08-05 19:10:18.478908032 -0400
+++ ifdown-wireless     2005-08-05 21:55:15.000000000 -0400
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [ "$WPA" = "yes" ]; then
+    killall wpa_supplicant
+    test -e /var/run/wpa_supplicant && rm -r /var/run/wpa_supplicant
+fi
+
--- initscripts.orig/sysconfig/network-scripts/ifdown   2005-01-19 14:40:14.000000000 -0600
+++ initscripts/sysconfig/network-scripts/ifdown        2005-04-10 13:18:01.094797737 -0500
@@ -38,6 +38,9 @@
     /sbin/ifdown-pre-local ${DEVICE}
 fi

+# Is the device wireless?
+is_wireless_device ${DEVICE} && . ./ifdown-wireless
+
 OTHERSCRIPT="/etc/sysconfig/network-scripts/ifdown-${DEVICETYPE}"

 if [ ! -x ${OTHERSCRIPT} ]; then

I then created a ifcfg-wlan0 file in /etc/sysconfig/networking/devices
with...

WPA=yes
WPA_CONFIG=/etc/wpa_supplicant.conf
WPA_DRIVER=ndiswrapper
TYPE=Wireless
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes

and a keys-wlan0 with the WPA-SPK key. However whenever I do a
/etc/sysconfig/network/ifcfg-wireless I get errors about...

Error : unrecognised wireless request "any"

Are there any clear instructions on how to do this for FC4? I am
using the RT2500 driver for a WRT54-G. Thanks in advance.
                   Jack


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux