-
Load the driver, if it's not loaded.
insmod wlan.ko
-
Find out
phy
name. Our case -phy0
# iw list | grep Wiphy Wiphy phy0
-
Add new interface
iw phy phy0 interface add wlan1 type managed
-
Create wpa_supplicant and hostapd config
Create wpa_supplicant and hostapd config. AP and STA can be configured to work on different channels on a different frequency band, 2.4 GHz and 5 GHz. For example, STA connects to AP on channel 1 and AP operates on channel 48.
-
Run the applications
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf & hostapd AP_configuration.conf