I have a AR6302 chip connected with sdio to my imx6q board.
I do as follows:
$ insmod ath6kl.ko
$ ifconfig wlan0 up
$ iwlist wlan0 scan
All above is ok.
Then I tried to connect to the wifi AP.
$ wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - Trying to associate with d0:c7:c0:a7:55:da (SSID=)
ioctl[SIOCSIWFREQ]: Operation not supported
Association request to the driver failed
Then i kill wpa_supplicant and rerun the program.
$ wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf
Now it seems ok.
octl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - Associated with d0:c7:c0:a7:55:da
WPA: Key negotiation completed with d0:c7:c0:a7:55:da [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to d0:c7:c0:a7:55:da completed (auth) [id=0 i]
Then it can ping other machines successfully.
But sometimes the kernel output errors:
ath6kl: aggr timeout (st 143 end 174)
And the system will hang for about 1 seconds.
I tried to send some video data:
gst-launch -v tvsrc device=/dev/video1 ! 'video/x-raw-yuv,format=(fourcc)UYVY,width=720,height=576,framerate=25/1' ! mfw_ipucsc ! 'video/x-raw-yuv,format=(fourcc)I420, width=720,height=576,framerate=25/1' ! vpuenc codec=avc ! video/x-h264,width=720,height=576 ! rtph264pay ! udpsink host=192.168.1.86 port=5004 sync=false async=false
The kernel crashs:
ath6kl: req failed (status:-110, ep:2, len:80 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:80 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:236 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:80 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:236 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:1484 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:1484 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:1484 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:1484 creds:1)
ath6kl: tx error, status: 0xffffff92
ath6kl: req failed (status:-110, ep:2, len:1484 creds:1)
ath6kl: tx error, status: 0xffffff92
------------[ cut here ]------------
WARNING: at drivers/net/wireless/ath/ath6kl/sdio.c:499 sdio_irq_thread+0x1d4/0x)
Modules linked in: tvp5150_camera ath6kl
[<800468e0>] (unwind_backtrace+0x0/0xf8) from [<800700dc>] (warn_slowpath_commo)
[<800700dc>] (warn_slowpath_common+0x4c/0x64) from [<80070110>] (warn_slowpath_)
[<80070110>] (warn_slowpath_null+0x1c/0x24) from [<80368148>] (sdio_irq_thread+)
[<80368148>] (sdio_irq_thread+0x1d4/0x2ac) from [<80089edc>] (kthread+0x80/0x88)
[<80089edc>] (kthread+0x80/0x88) from [<800400e4>] (kernel_thread_exit+0x0/0x8)
---[ end trace eca840746d727b64 ]---
Seems I lost some kernel configuration options?
Hi,
Which BSP are you using?
How did you add the AR6302 support and the corresponding firmware?
/Alejandro
BSP version is L3.0.35_4.1.0_130816.
Firmware got from BSP linux kernel source firmware/ath6kl.
-------
Later i tried compat wireless(https://wireless.wiki.kernel.org/en/users/download backports-4.0.1-1.tar.gz) and firmware from BSP(L3.0.35_4.1.0_130816 kernel).
Now all seems ok. But the network is always delayed for about 0.5~1 second.
Seems problem with the firmware. Where could I got the right version firmware?
Thank you.