Rfkill caveatiwconfig
& iw
Association with WPA
Assigning IP address
Rfkill caveat
rfkill unbound wlan
iwconfig
& iw
iwconfig | iw |
---|---|
iwconfig wlan0 txpower on | |
iwconfig wlan0 txpower auto | iw dev wlan0 set txpower auto |
iwconfig wlan0 txpower fixed | iw dev wlan0 set txpower fixed 50 |
iwconfig wlan0 txpower 1 #100dBm | iw dev wlan0 set txpower limited 50 |
iwconfig wlan0 rts 512 #0~65535B | iw phy phy0 set rts 512 #0~65535B |
iwconfig wlan0 rts auto | |
iwconfig wlan0 frag 512 #256~2350B | iw phy phy0 set frag 512 #256~2348B |
iwconfig wlan0 frag auto | |
iwconfig wlan0 / ifconfig wlan0 | iw dev / iw dev wlan0 link / iw dev wlan0 station dump |
ifconfig wlan0 up | ip link set wlan0 up |
ifconfig wlan0 | ip link show wlan0 |
iwconfig wlan0 mode ad-hoc | iw dev wlan0 set type ibss |
iwlist wlan0 scan| grep SSID | iw dev wlan0 scan| grep SSID |
iwconfig wlan0 essid [the-essid] #no-encryption | iw dev wlan0 connect [the-essid] #no-encryption |
iwconfig wlan0 essid [the-essid] key s:[WEP-key] | iw dev wlan0 connect [the-essid] key 0:[WEP-key] |
Association with WPA
wpa_passphrase asdfdsaqaz blblxmxa > /etc/wpa_supplicant/dingzhenglin.conf
wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant/dingzhenglin.conf
or
wpa_supplicant -B -iwlan0 -c < (wpa_passphrase asdfdsaqaz blblxmxa)
Assigning IP address
dhcpcd wlan0