Wifi: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Troubleshoot wifi ==
== Commands ==
* <tt>[[Linux Commands#iwconfig|iwconfig]]</tt>, get information or configure a wireless network interface
<source lang="bash">
sudo iwconfig # Get information
sudo iwconfig wlan0 # Configure
</source>
* <tt>[[Linux Commands#iwlist|iwlist]]</tt>, get more detailed wireless information from a wireless interface
<source lang="bash">
sudo iwlist scan
sudo iw dev wlan0 scan
</source>
* <tt>[[Linux Commands#rfkill|rfkill]]</tt>, show state of RF SW/HW kill switch (WiFi / BT / ...)
<source lang="bash">rfkill list all</source>


== Troubleshoot wifi ==
<source lang=bash>
<source lang=bash>
# Check device
# Check device
Line 11: Line 24:
# Check status interfaces
# Check status interfaces
ifconfig
ifconfig


</source>
</source>



Revision as of 16:36, 10 June 2019

Commands

  • iwconfig, get information or configure a wireless network interface
sudo iwconfig           # Get information
sudo iwconfig wlan0     # Configure
  • iwlist, get more detailed wireless information from a wireless interface
sudo iwlist scan
sudo iw dev wlan0 scan
  • rfkill, show state of RF SW/HW kill switch (WiFi / BT / ...)
rfkill list all

Troubleshoot wifi

# Check device
lsusb                # if wifi usb device
lspci                # if wifi pci device

# Check if device has an interface
iwconfig

# Check status interfaces
ifconfig


Wifi is either controlled by NetworkManager or via the command line.

NetworkManager
Command file
  • See file /etc/network/interfaces. See man page man interfaces
  • For WPA, see file /etc/wpa_supplicant/wpa_supplicant.conf.
Miscellaneous
  • Wireless deauthentication code from [1]:
  • About syslog wlan0: deauthenticated from 00:1d:7e:0c:24:5e (Reason: 14), see [2]:
    That means that the WPA encryption code is failing and the packet is corrupt. I would worry about that corrupt beacon from the AP.
  • Troubleshooting WiFi (opensuse post)
  • Getting info on WiFi (opensuse post)
3 Deauthenticated because sending station is leaving (or has left) IBSS or ESS.
14 MIC failure.