Hi,
Testing Access Point feature with U-blox WiFi module LILY-W133 and facing issue with running the access point . Below are the commands used:
loadign the modules:
modprobe cfg80211
insmod mlan.ko
insmod nxp_driver/usb8801.ko fw_name=nxp/usb8801_uapsta.bin
Disabling the Firewall to allow incoming connections:
important to disable Firewall else DHCP fails to respond to IP address Requests.
/usr/sbin/iptables -P INPUT ACCEPT
/usr/sbin/iptables -P OUTPUT ACCEPT
/usr/sbin/iptables -P FORWARD ACCEPT
Starting the access point :
vi /etc/dnsmasq.conf
comment everything in dnsmasq.conf and add the below lines
Interface to bind to
interface=uap0
Specify starting_range,end_range,lease_time
dhcp-range=10.0.0.3,10.0.0.20,12h
Uncomment and modify the following lines if you don’t want to forward dns from the host’s /etc/resolv.conf
disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
#no-resolv
dns addresses to send to the clients
#server=8.8.8.8
#server=8.8.4.4
mkdir hostapd
- for 2.4GHZ -
vi hostapd/hostapd.conf
interface=uap0
driver=nl80211
ieee80211n=1
hw_mode=g
country_code=US
ssid=maya_AP_2.4G
channel=6
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
auth_algs=1
wmm_enabled=1
ip link set uap0 down
ip addr flush dev uap0
ip link set uap0 up
ip addr add 10.0.0.1/24 dev uap0
killall dnsmasq
dnsmasq
hostapd hostapd/hostapd.conf
The drivers are loaded correctly and the module is detected in the dmesg system:
[ 500.268224] usb8xxx: unknown parameter ‘fw_serial’ ignored
[ 500.268286] usb8xxx: unknown parameter ‘mod_para’ ignored
[ 500.269720] wlan: Loading MWLAN driver
[ 500.272071] USB probe: idVendor=1286 idProduct=2049 bInterfaceNumber=0
[ 500.272097] VID/PID = 1286/2049, Boot2 version = 4000
[ 500.272130] rx_work=0 cpu_num=1
[ 500.290294] Request firmware: nxp/usb8801_uapsta.bin
[ 501.057709] fw_dnld: 255936 bytes downloaded
[ 501.057746] WLAN FW is downloaded
[ 501.381854] usb 1-1.2: USB disconnect, device number 3
[ 501.561614] usb_reset_device() successful.
[ 501.562657] usbcore: registered new interface driver usb8xxx
[ 501.562674] wlan: Driver loaded successfully
[ 501.841254] usb 1-1.2: new high-speed USB device number 5 using msm_hsic_host
[ 501.957880] usb 1-1.2: New USB device found, idVendor=1286, idProduct=204a
[ 501.957915] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 501.957934] usb 1-1.2: Product: Marvell Wireless Device
[ 501.957951] usb 1-1.2: Manufacturer: Marvell
[ 501.957968] usb 1-1.2: SerialNumber: D4CA6EAEFCCE
[ 501.962350] USB probe: idVendor=1286 idProduct=204a bInterfaceNumber=0
[ 501.962380] VID/PID = 1286/204A, Boot2 version = 3117
[ 501.962426] rx_work=0 cpu_num=1
**[ 501.990325] WLAN FW is active**
[ 502.017501] fw_cap_info=0xba3, dev_cap_mask=0xffffffff
[ 502.070464] wlan: version = USB8801-14.68.36.p165-C4X14C693-GPL-(FP68)
Below is the error faced :
root@swi-mdm9x28-wp:~# hostapd -dddd hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: hostapd/hostapd.conf
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=uap0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=15 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 15 iftype 2 (STATION)
nl80211: Failed to set interface 15 to mode 2: -19 (No such device)
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x7f663b48)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7f663b48)
uap0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss uap0
uap0: AP-DISABLED
hostapd_cleanup(hapd=0x7f664868 (uap0))
hostapd_free_hapd_data: Interface uap0 wasn’t started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) → hapd_deinit
hostapd_interface_free(0x7f663b48)
hostapd_interface_free: free hapd 0x7f664868
hostapd_cleanup_iface(0x7f663b48)
hostapd_cleanup_iface_partial(0x7f663b48)
hostapd_cleanup_iface: free iface=0x7f663b48
Can you please help to know why there is this error with the Access point mode? Other modules used from Realtek chipset seems to work fine.