Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have automatic wireless working on 12.04 on my Surface Pro. I am having an issue where it seems to drop the signal, and I do not know how to reconnect without resetting the computer.

My system is set up with a mix of the advice from the dual boot guide, Alp's advice, Doug's advice, Dan's (http://askubuntu.com/a/303358/179276).

Here is my /etc/network/interfaces:

auto lo
auto mlan0
iface lo inet loopback
iface mlan0 inet manual
    pre-up sh -c "sleep 10"
    wpa-driver nl80211
    wpa_driver wext
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

here is my (partially redacted) /etc/wpa_supplicant/wpa_supplicant.conf:

ctrl_interface_group=0
ctrl_interface=/var/run/wpa_supplicant
network={
    scan_ssid=1
    ssid="MYSSID"
    key_mgmt=WPA-PSK
    psk="MYPSK"
}
update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

I am fairly sure I am not running wpa_gui at startup, but when I turn it on it seems to see the wireless ok.

I have another wpa_supplicant.conf file (not sure if it's doing anything yet), in /etc/wpa_supplicant.conf:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ctrl_interface_group=0
update_config=1

network={
    ssid="MYSSID"
    scan_ssid=1
    psk="MYPSK"
    key_mgmt=WPA-PSK
}

network={
    ssid="MYSSID"
    psk="MYPSK"
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    auth_alg=OPEN
}

I have tried killing wpa_supplicant and re-running it after the connection fails,without it working. Of course I would prefer a solution that prevented the disconnection from occurring or at least reconnecting right away. In wpa_gui, the connect appears to be fine, but I can't access websites, etc.

After connection drops,I try reconnecting and get this:

Delete '/var/run/wpa_supplicant/mlan0' manually if it is not used anymore Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'. You may have another wpa_supplicant process already running or the file was left by an unclean termination of wpa_supplicant in which case you will need to manually remove this file before starting wpa_supplicant again.

So I kill wpa_supplicant, then re-run it.

$ sudo /sbin/wpa_supplicant -dd -imlan0 -c/etc/wpa_supplicant.conf -Dwext,nl80211

It's not clear to me why it fails, but here is the output:

Initializing interface 'mlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext,nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=netdev'
ctrl_interface_group='0'
update_config=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=17):
 REDACTED (MYHOMESSID)          
scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
key_mgmt: 0x2
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line: 12 - start of a new network block
ssid - hexdump_ascii(len=18):
REDACTED   (MYWORKSSID)                                    
key_mgmt: 0x4
auth_alg: 0x1
Priority group 0
 id=0 ssid='MYHOMESSID'
id=1 ssid='MYWORKSSID'
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.