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

Re: wifi auto-detection not working any more



On Sun, 30 Oct 2011 11:10:36 +0000
Brian <ad44@cityscape.co.uk> wrote:

> On Sun 30 Oct 2011 at 14:07:57 +0530, J. Bakshi wrote:
> 
> > Could any one suggest what is actually missing here ?
> 
> You have shown only a portion of your /e/n/i. 

Ok, here is the complete one

```````````````````````

# The loopback network interface
auto lo
iface lo inet loopback

# We first have to tell ifupdown that instead of just configuring the interface,
# it should first ask guessnet to find out in which network we are

mapping eth0
script guessnet-ifupdown
map default: unknown
map home  office office


iface home inet static
        address 10.10.54.111
        netmask 255.255.255.128
        network 10.10.29.1
        broadcast 10.10.29.128
        gateway 10.10.54.1
        dns-nameservers 8.8.8.8  8.8.4.4
 test peer address   10.10.54.1

post-up /usr/local/bin/wishnet start
post-up  /root/bin/FIREWALL start
### when wired network present, disable WIFI ###
pre-up /sbin/ifdown wlan0
pre-up /sbin/iwconfig wlan0 txpower off
#################################################
down  /sbin/iwconfig wlan0 txpower on
post-down /usr/local/bin/wishnet  stop

iface office inet static
        address 192.168.1.99
        netmask 255.255.0.0
        network 192.168.1.0
        broadcast 192.168.1.0
        gateway 192.168.1.1
        # need resolvconf to work dns-*  entry
        dns-nameservers 8.8.8.8  8.8.4.4
        metric 1
test peer address 192.168.1.1 mac  00:15:17:62:39:4f
pre-up /usr/local/bin/wishnet stop
### when wired network present, disable WIFI ###
pre-up /sbin/ifdown wlan0
pre-up /sbin/iwconfig wlan0 txpower off
#################################################
post-up /root/bin/FIREWALL start
down  /sbin/iwconfig wlan0 txpower on

mapping wlan0
     script guessnet-ifupdown
     map default: office-wifi
     map  office-wifi open unknown
     map timeout: 12
     # map init-time: 12   # for slow drivers
     map verbose: true
     map debug: true

 iface office-wifi inet dhcp
   wpa-driver nl80211
   wpa-conf /usr/local/etc/my.wpa_supplicant.conf
   test wireless  mac  00:1C:F0:3D:4C:C9
post-up  /root/bin/FIREWALL start

`````````````````````````````

at /usr/local/etc/my.wpa_supplicant.conf I have

```````````````````````````
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

ap_scan=1

network={
        ssid="rblin"
        psk=026d1e67ce2899210d81f4af99cdd643d29932cfff6c507bb0d19eb90c14a0c4
        key_mgmt=WPA-PSK
        #"RSN" = WPA(2)
        proto=RSN
        #encryption
        #"CCMP" = AES cipher as part of WPA(2) standard.
        #"TKIP" = TKIP cipher as part of WPA(1) standard.
        pairwise=CCMP
        group=CCMP
        scan_ssid=1 #scan hidden SSID
        priority=10
}
`````````````````

Please note I have not changed anything at /usr/local/etc/my.wpa_supplicant.conf
but only at /e/n/i with these two lines

[...]
  wpa-driver nl80211
  wpa-conf /usr/local/etc/my.wpa_supplicant.conf
[....]


Reply to: