erstrom / linux-ath

Linux qca/ath wireless driver tree (based on git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git)
Other
21 stars 12 forks source link

Error when bringing interface up #6

Open samurdhilbk opened 6 years ago

samurdhilbk commented 6 years ago

I have successfully built the USB driver on Ubuntu 16.04 and the Managed mode is working fine. I'm using the Linksys WUSB6100m with the QCA9377 chipet. But there is a slight issue.

When you bring down the interface with

$ sudo ifconfig wlan1 down

it doesn't throw any error and actually brings the interface down.

However, when you try to put it back up, it gives the error below and you simply cannot work with the device after that. You have to pull it out and plug it back in to get it working again.

$ sudo ifconfig wlan1 up
SIOCSIFFLAGS: Invalid argument

Here is the dmesg output I got when issuing the ifconfig wlan1 up command.

[  152.699734] usb 2-4: Failed to submit usb control message: -110
[  152.699740] usb 2-4: unable to send the bmi data to the device: -110
[  152.699743] usb 2-4: unable to write to the device (-110)
[  152.699747] usb 2-4: settings HTC version failed
[  152.699755] usb 2-4: Could not init core: -22

I need this behaviour to work because I'm trying to use hostapd to set up an AP, and the init process fails when it tries to bring the interface up after putting it down.

Same issue with kernels made both out of the master branch and the most recent high latency branch (4.14.0-rc7).

I'm trying to figure out whether the problem is with the driver, the firmware file or the board file.

As the firmware file I'm using one I got by using athwlan_AR6320.bin and otp_AR6320.bin files as the qwlan and otp files respectively in ath10k-fwencoder. As the board file I'm using eeprom_qca9377_7_1p1_Robin_clpc_fcc.bin. All these files were obtained from the official Linksys site at http://downloads.linksys.com/downloads/driver/Win10.zip.

Any help is highly appreciated.

erstrom commented 6 years ago

I haven't tried to use the WUSB6100M in AP mode. Perhaps you can share your configuration so I can try it myself? I have a QEMU based test environment I use with the WUSB6100M: https://github.com/erstrom/buildroot-ath10k-test Perhaps I can extend it with some AP tests.