Fedora 13 Linux WiFi configuration on Asus F3S laptop

A few days ago my office collegue asked me about configuration of WI-FI connection on laptop. As I remember it was a bit complicated task and took me extra diggings to run WI-FI on my ASUS F3S laptop. Today I found this brief instruction file noted during my WI-FI installation experience and decided to publish here. Hope, you will find this useful :)


Edit file /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
network={
  ssid="company-wifi"
  scan_ssid=1
  key_mgmt=WPA-PSK
  psk="passwordxyz"
}

Try to scan network to see your home network

[root@sheroz-laptop Sheroz]# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:23:CD:DD:19:F4
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=70/70  Signal level=-33 dBm  
                    Encryption key:on
                    ESSID:"Gimpex"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000021da72f181
                    Extra: Last beacon: 172ms ago
                    IE: Unknown: 000647696D706578
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 32041224606C
          Cell 02 - Address: 00:23:CD:C5:10:C4
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=39/70  Signal level=-71 dBm  
                    Encryption key:on
                    ESSID:"TP-LINK_C510C2"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000003093413f6
                    Extra: Last beacon: 238ms ago
                    IE: Unknown: 000E54502D4C494E4B5F433531304332
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 03010B
                    IE: Unknown: 0706555A20010B1B
                    IE: Unknown: 200100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101040003A4000027A4000042435E0062322F00
                    IE: Unknown: DD1E00904C334E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C340B071900000000000000000000000000000000000000
                    IE: Unknown: 3D160B071900000000000000000000000000000000000000
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD0A00037F04010000000000

I could not find here my company network. Then decided to check available channels

[Sheroz@sheroz-laptop ~]$ iwlist wlan0 channel
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz

But the channel #12 used in my company WiFi was not listed here. After some googling I found that this issue can be fixed by changing location settings.
Add the line below to /etc/modprobe.d/openfwwf.conf

options cfg80211 ieee80211_regdom="EU"

Reboot laptop and check channels again:

[Sheroz@sheroz-laptop ~]$ iwlist wlan0 channel
wlan0     32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Channel 128 : 5.64 GHz
          Channel 132 : 5.66 GHz
          Channel 136 : 5.68 GHz
          Channel 140 : 5.7 GHz
          Current Frequency:2.467 GHz (Channel 12)

Yes! Now my laptop saw the channel #12!

[root@sheroz-laptop /]#wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext -dd -iwlan0


[root@sheroz-laptop Sheroz]# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext -iwlan0
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 00:1a:70:aa:e2:f6 (SSID='company-wifi' freq=2467 MHz)
Associated with 00:1a:70:aa:e2:f6
WPA: Key negotiation completed with 00:1a:70:aa:e2:f6 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1a:70:aa:e2:f6 completed (auth) [id=0 id_str=]


[root@sheroz-laptop Sheroz]# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext -iwlan0 -B


[root@sheroz-laptop Sheroz]# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext -iwlan0 
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[SIOCSIWSCAN]: Device or resource busy
Failed to initiate AP scan.
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 00:1a:70:aa:e2:f6 (SSID='company-wifi' freq=2467 MHz)
Associated with 00:1a:70:aa:e2:f6
WPA: Key negotiation completed with 00:1a:70:aa:e2:f6 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:1a:70:aa:e2:f6 completed (auth) [id=0 id_str=]


[root@sheroz-laptop /]# wpa_cli
...
> status
bssid=00:1a:70:aa:e2:f6
ssid=company-wifi
id=0
pairwise_cipher=TKIP
group_cipher=TKIP
key_mgmt=WPA-PSK
wpa_state=COMPLETED
ip_address=192.168.xx.xx

>quit

Just add script to run wifi

#!/bin/bash
if [ "$1" == "start" ]
then
 wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -D wext -dd -iwlan0 -B
else
 sudo wifi start
fi

Enjoy!!!

P.S. Due to time shortage I could not comment every step. Hope you can understand what is going here.



IT / Coding / How-To


Other Topics