Changes

Jump to: navigation, search

Accessing hardware peripherals (SDVX)

1,312 bytes added, 08:52, 7 December 2018
Wifi
root@sdv03-lite:~#
</pre>
 
==== hostapd ====
* verify against supported modes
 
<pre class="workstation-terminal">
root@sdv03-lite:~# iw list | grep "Supported interface modes" -A 8
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
Band 1:
root@sdv03-lite:~#
</pre>
 
* check for configuration file ''/etc/hostapd.conf''
 
<pre>
interface=wlan0
ssid=sdv03-test
channel=1
wpa=2
wpa_passphrase=SDV03-1234
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
</pre>
 
*
==== network scan ====
* Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
* Unknown TLV (0x1049, 23 bytes): 00 01 37 10 06 00 10 80 25 75 26 67 02 75 7d ca 10 7e fc 22 51 44 a8
root@sdv03-lite:~#
</pre>
 
==== hostapd ====
* verify against supported modes
 
<pre class="workstation-terminal">
root@sdv03-lite:~# iw list | grep "Supported interface modes" -A 8
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
Band 1:
root@sdv03-lite:~#
</pre>
 
* example of configuration file ''/etc/hostapd.conf''
 
<pre>
interface=wlan0
ssid=sdv03-test
channel=1
wpa=2
wpa_passphrase=sdv03password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
</pre>
 
* kill any ''wpa_supplicant daemon'' and unblock ''rfkill''
 
<pre class="workstation-terminal">
root@sdv03-lite:~# killall wpa_supplicant
root@sdv03-lite:~# rfkill unblock wifi
</pre>
 
* start the ''hostapd''
 
<pre class="workstation-terminal">
root@sdv03-lite:~# /etc/init.d/hostapd start
Starting HOSTAP Daemon: Configuration file: /etc/hostapd.conf
[ 823.569111] rtl8192cu: MAC auto ON okay!
[ 823.606635] rtl8192cu: Tx queue select: 0x05
[ 824.472331] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Using interface wlan0 with hwaddr 5c:f3:70:1a:8a:43 and ssid "sdv03-test"
random: Only 12/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure ope[ 824.551065] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
rations - update keys later when the first station connects
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
hostapd.
root@sdv03-lite:~#
</pre>
 
* show wlan0 status
<pre>
root@sdv03-lite:~# iw wlan0 info
Interface wlan0
ifindex 5
wdev 0x100000001
addr 5c:f3:70:1a:8a:43
ssid sdv03-test
type AP
wiphy 1
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
root@sdv03-lite:~#
</pre>
8,154
edits

Navigation menu