Re: WiFi LAN access, but not WAN access.

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

 



On Mon, 18 Feb 2008 18:07:16 -0500, Pete Geenhuizen wrote:

> Not sure if this addresses your particular situation, but in my
> struggles to get WiFi to work with WPA, with both NDISWRAPPER and the
> cursed BCM mess I found this little gem which works for both FC6, F8 and
> now I'm on CentOS5 with both ndiswrapper and Madwifi driving an Atheros
> PCI card.
> 
> The interface comes up @ boot and when I login all is well.  I use
> kwifimanager as a quick and dirty method to monitor the WiFi for
> connection and speed info.
> 
> chkconfig {NetworkManager,NetworkManagerDispatcher,wpa_supplicant} off
> 
> add the following to the end of
> /etc/sysconfig/network-scripts/ifup-wireless
> 
> # wsrcc hack start.
> # This seems to be the only way to get wpa networking and dhcpclient to
> work # properly at boot
> if [ ! -S /var/run/wpa_supplicant/$DEVICE ]  ;  then
>     wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i$DEVICE
> -Dwext -B
> fi
> # wsrcc end end
> 
> 
[...]

This is very helpful.  Following this suggestion, I put at
the end of the ifup-wireless:

# Bring up wpa_supplicant if needed.

suppl=no

if ! ps -ef | grep -v grep | grep -q wpa_supplicant; then
   if test -n "$ESSID"; then
      for ii in thisSecureWiFi thatSecureWiFi theOtherSecureWifi; do
         if test $ii = $ESSID; then
            suppl=yes
         fi
      done
   fi
fi

if test $suppl = yes; then
   wpa_supplicant  -w -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf 
-B
fi


Now I do not have the wireless coming up automatically, but
if i click Activate in Network Device Control, the connection
is made with reasonable reliability.

Now I would like to bring down wpa_supplicant when I click
Deactivate, bit I do not see a "ifdown-wireless" script.

What script is called in this case?

Thanks,
Mike.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux