Changes

Jump to: navigation, search

XUELK-AN-002: Running Debian distribution

1,295 bytes added, 17:17, 20 March 2017
WiFi (client mode)
==Notes about physical interfaces==
===WiFi (client mode)===
The procedure is similar described can be used to connect to an Access Point, using the one described [[XUELK-AN-001:_Using_WiFi-Bluetooth_combo_plugin_with_SBC_Lynx#WiFi_WPA2/PSK security protocol.28client_mode.29|here]]. However, as  As the WiFi driver is not statically linked to the kernel image, it is necessary to load the module first:
<pre class="board-terminal">
root@arm:~# ifconfig
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
</pre>
The root file system provides the [https://wireless.wiki.kernel.org/en/users/documentation/iw <code>iw</code> tool]] that can be used to manage the WiFi interface.
FirstThen, bring the interface up:
<pre class="board-terminal">
root@arm:~# iw dev
</pre>
Issue The connection will be established with the following command to scan the networksSSID named <code>SSID_ZyXEL_WPA2</code>:
<pre class="board-terminal">
root@arm:~# iw wlan0 scan
...
BSS qqfe:wwf0:ee28:rrcc:tt03:yy90(on wlan0) TSF: 32261107194 42646261 usec (0d, 0800:5700:4142)
freq: 2437
beacon interval: 100 TUs
capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
signal: -8353.00 dBm
last seen: 0 ms ago
Information elements from Probe Response frame: SSID: ssidSSID_ZyXEL_WPA2 Supported rates: 1.0* 2.0* 5.5* 11.0* 186.0 249.0* 3612.0 5418.0
DS Parameter set: channel 6
ERP: <no flags> ERP D4.0: <no flags> Extended supported rates: 6.0* 9.0 12.0* 48.0 WPARSN: * Version: 1
* Group cipher: TKIP
* Pairwise ciphers: TKIP
* Authentication suites: PSK
* Capabilities: 161-PTKSA-RC 1-GTKSA-RC (0x000c0x0000) ERP: <no flags> Extended supported rates: 24.0 36.0 48.0 54.0
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
...
</pre>
 
Add the passphrase key to the
root@arm:~# wpa_passphrase SSID_ZyXEL_WPA2 >> /etc/wpa_supplicant.conf
ZyXEL-WPA2-PSK
root@arm:~# cat /etc/wpa_supplicant
wpa_supplicant/ wpa_supplicant.conf
root@arm:~# cat /etc/wpa_supplicant.conf
# reading passphrase from stdin
network={
ssid="SSID_ZyXEL_WPA2"
#psk="ZyXEL-WPA2-PSK"
psk=ec41b79ebdf10022908aa10189b0341f095fd62eeb719a67c5c920e0cde28564
}
root@arm:~# wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
root@arm:~# [ 3527.234018] wlan0: authenticate with fe:f0:28:cc:03:90
[ 3527.269591] wlan0: send auth to fe:f0:28:cc:03:90 (try 1/3)
[ 3527.277879] wlan0: authenticated
[ 3527.282841] wl12xx_driver wl12xx.0.auto wlan0: disabling HT/VHT due to WEP/TKIP use
[ 3527.298407] wlan0: associate with fe:f0:28:cc:03:90 (try 1/3)
[ 3527.307655] wlan0: RX AssocResp from fe:f0:28:cc:03:90 (capab=0x431 status=0 aid=1)
[ 3527.326148] wlcore: Association completed.
[ 3527.349780] wlan0: associated
[ 3527.352824] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
 
root@arm:~# iw wlan0 link
Connected to fe:f0:28:cc:03:90 (on wlan0)
SSID: SSID_ZyXEL_WPA2
freq: 2437
RX: 13605 bytes (160 packets)
TX: 1226 bytes (12 packets)
signal: -22 dBm
tx bitrate: 54.0 MBit/s
 
bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 100
4,650
edits

Navigation menu