TI WL1271 WiFi Linux settings

Source: Internet
Author: User

1./etc/wpa_supplicant.config Content

Ctrl_interface=/var/run/wpa_supplicant
network={
Ssid= "SSID_NAMEF"
psk= "Password"
Key_mgmt=wpa-psk
}


2. Commands

Wpa_supplicant-iwlan0-c/etc/wpa_supplicant.conf&
Sleep 1
Ifconfig Wlan0 down <=== This is necessary
Sleep 1
Ifconfig wlan0 up
Sleep 5
Udhcpc-i Wlan0


Log:

=========================

[email protected]:~ #wpa_supplicant-iwlan0-c/etc/wpa_supplicant.conf&
Successfully initialized Wpa_supplicant
[146.480895] wlcore:phy firmware Version:rev 8.2.0.0.195
[146.605834] Wlcore:firmware booted (Rev. 8.8.0.0.13)

[email protected]:~# ifconfig wlan0 down
[146.898712] Wlcore:down

[email protected]:~# ifconfig wlan0 up
[148.330871] wlcore:phy firmware Version:rev 8.2.0.0.195
[148.455841] Wlcore:firmware booted (Rev. 8.8.0.0.13)
Wlan0:trying to[151.675201] Wlan0:authenticate with ac:22:0b:8d:99:06
Associate with ac:22:0b:8d:99:06 (ssid= ' ssid_name[151.684906] wlan0:send auth to ac:22:)
F ' freq=2442 MHz)
Ioctl[siocsiwfreq]: Device or resource busy
Wlan0:association request to the driver failed
[151.715301] Wlan0:authenticated
[151.722412] Wlan0:associate with ac:22:0b:8d:99:06 (try 1/3)
[151.855316] Wlan0:rx assocresp from ac:22:0b:8d:99:06 (capab=0x411 status=0 aid=6)
[151.870971] Wlcore:association completed.
[151.877410] Wlan0:associated
Wlan0:associated with ac:22:0b:8d:99:06
Wlan0:WPA:Key negotiation completed with ac:22:0b:8d:99:06 [ptk=ccmp gtk=ccmp]
Wlan0:ctrl-event-connected-connection to ac:22:0b:8d:99:06 completed (auth) [Id=0 id_s]

[email protected]:~# udhcpc-i wlan0
Udhcpc-i Wlan0
UDHCPC (v1.20.2) started
Sending Discover ...
Sending Select for 192.168.1.167 ...
Lease of 192.168.1.167 obtained, Lease time 259200
/etc/udhcpc.d/50default:adding DNS 8.8.8.8
/etc/udhcpc.d/50default:adding DNS 168.95.1.1
[Email protected]:~# ifconfig
Eth0 Link encap:ethernet HWaddr d0:ff:50:ac:c5:38
Up broadcast multicast mtu:1500 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0  (0.0 B) TX bytes:0 (0.0 B)

Lo Link encap:local Loopback
inet addr:127.0.0.1 mask:255.0.0.0
Up LOOPBACK RUNNING mtu:16436 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0  (0.0 B) TX bytes:0 (0.0 B)

Wlan0 Link encap:ethernet HWaddr 1c:ba:8c:7f:b6:96
inet addr:192.168.1.167 bcast:0.0.0.0 mask:255.255.255.0
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6826 (6.6 KiB) TX bytes:984 (984.0 B)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.