- Basic check on the card:
iwconfig. - Check country set for the card:
iw reg get - Set region (for eg US):
sudo iw reg set US - Check what your card support (check supported bands, SAE/WPA3):
iw list - Scan for WiFi networks (for eg using wlan0 interface). Try
sudoif no results:
iwlist wlan0 scan | grep 'Cell\|Quality\|ESSID\|IEEE' - Changing channel (for eg to 64). First need to disable the interface, then change, and bring it up again:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 channel 64
sudo ifconfig wlan0 up
iwlist wlan0 channel - Change to monitor mode:
sudo ifconfig wlan0 down
sudo iw wlan0 set monitor control
sudo ifconfig wlan0 up - Change to managed/default mode:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode managed
sudo ifconfig wlan0 up - Backhaul/mesh: Change to ad-hoc mode:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode ad-hoc
sudo ifconfig wlan0 up - Backhaul/mesh: Change to mesh mode:
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode mesh
sudo ifconfig wlan0 up - Rogue AP or Evil Twin: Change to master mode. First need to create a file with the following content (change accordingly):
interface=wlan0 driver=nl80211 ssid=HTB-Hello-World channel=2 hw_mode=gThen just run
sudo hostapd open.conf