Wifi

From miki
Revision as of 16:36, 10 June 2019 by Mip (talk | contribs)
Jump to navigation Jump to search

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.