Torin Nguyen | 16 Mar 07:51 2011

ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use custom firmware as described here
http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode

But the it failed to initialize. Here's the dmesg:
[101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
[101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
[101727.404192] ath: Couldn't reset chip
[101727.404200] ath: Unable to initialize hardware; initialization status: -5
[101727.404206] ath: Unable to initialize hardware; initialization status: -5
[101727.404216] Failed to initialize the device
[101727.405340] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
[101727.405383] usbcore: registered new interface driver ath9k_hif_usb

There is no wireless extension found when I do a 'iwconfig'.

Interestingly, this driver (ap-mode patched) works fine in station mode with firmware from here
http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree

Please tell me what could go wrong?

Thanks,
Torin

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Mohammed Shafi | 16 Mar 08:52 2011
Picon

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

On Wed, Mar 16, 2011 at 12:21 PM, Torin Nguyen <torin <at> chumby.com> wrote:
> I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP
> Mode patch applied & use custom firmware as described here
> http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode
>
> But the it failed to initialize. Here's the dmesg:
> [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> [101727.404192] ath: Couldn't reset chip
> [101727.404200] ath: Unable to initialize hardware; initialization status:
> -5
> [101727.404206] ath: Unable to initialize hardware; initialization status:
> -5
> [101727.404216] Failed to initialize the device
> [101727.405340] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [101727.405383] usbcore: registered new interface driver ath9k_hif_usb
>
> There is no wireless extension found when I do a 'iwconfig'.
>
> Interestingly, this driver (ap-mode patched) works fine in station mode with
> firmware from here
> http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
>
> Please tell me what could go wrong?

Can you please send it with reset debug messages with
sudo modprobe ath9k_htc debug=0x1

for this you need to enable ATH_DEBUG
and ATH9K_HTC_DEBUGFS

>
> Thanks,
> Torin
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel <at> lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
Rajkumar Manoharan | 16 Mar 09:54 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

On Wed, Mar 16, 2011 at 12:21:05PM +0530, Torin Nguyen wrote:
> I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use
custom firmware as described here
> http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode<mailto:ath9k-devel <at> lists.ath9k.org>
> 
Torin,

It seems to be Sujith could not update the above like. Please use the attached
customize firmware.

--
Rajkumar
Attachment (ar9271.fw): application/octet-stream, 67 KiB
_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Torin Nguyen | 16 Mar 10:06 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

Thanks Rajkumar,

Now it gives me this
[110770.802733] usb 2-1.2: ath9k_htc: Firmware - ar9271.fw download failed
[110770.802759] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
[110770.802789] usbcore: registered new interface driver ath9k_hif_usb

I simply replaced /lib/firmware/ar9271.fw with the new one.
Do I need to do anything else?
Fyi, I'm on Ubuntu 10.04

Torin


On Wed, Mar 16, 2011 at 4:54 PM, Rajkumar Manoharan <rmanoharan <at> atheros.com> wrote:
On Wed, Mar 16, 2011 at 12:21:05PM +0530, Torin Nguyen wrote:
> I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use custom firmware as described here
> http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode<mailto:ath9k-devel <at> lists.ath9k.org>
>
Torin,

It seems to be Sujith could not update the above like. Please use the attached
customize firmware.

--
Rajkumar

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Mohammed Shafi | 16 Mar 16:16 2011
Picon

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

On Wed, Mar 16, 2011 at 2:36 PM, Torin Nguyen <torin <at> chumby.com> wrote:
> Thanks Rajkumar,
>
> Now it gives me this
> [110770.802733] usb 2-1.2: ath9k_htc: Firmware - ar9271.fw download failed
> [110770.802759] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [110770.802789] usbcore: registered new interface driver ath9k_hif_usb
>
> I simply replaced /lib/firmware/ar9271.fw with the new one.
> Do I need to do anything else?
> Fyi, I'm on Ubuntu 10.04

that should be fine. still not working?

>
> Torin
>
>
> On Wed, Mar 16, 2011 at 4:54 PM, Rajkumar Manoharan <rmanoharan <at> atheros.com>
> wrote:
>>
>> On Wed, Mar 16, 2011 at 12:21:05PM +0530, Torin Nguyen wrote:
>> > I have just compiled the bleeding edge compat-wireless (15-Mar-2011)
>> > with AP Mode patch applied & use custom firmware as described here
>> >
>> > http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode<mailto:ath9k-devel <at> lists.ath9k.org>
>> >
>> Torin,
>>
>> It seems to be Sujith could not update the above like. Please use the
>> attached
>> customize firmware.
>>
>> --
>> Rajkumar
>
>
> _______________________________________________
> ath9k-devel mailing list
> ath9k-devel <at> lists.ath9k.org
> https://lists.ath9k.org/mailman/listinfo/ath9k-devel
>
>
Torin Nguyen | 17 Mar 04:32 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware


I tried cleaning & recompile the driver all over again.

Now, the firmware is downloaded ok, but it's back to the same error
[ 4013.397062] usb 2-1.2: new high speed USB device using ehci_hcd and address 10
[ 4013.795009] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51296
[ 4014.030499] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
[ 4016.117524] ath: Couldn't reset chip
[ 4016.117531] ath: Unable to initialize hardware; initialization status: -5
[ 4016.117538] ath: Unable to initialize hardware; initialization status: -5
[ 4016.117549] Failed to initialize the device
[ 4016.118665] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22

I have also tried sending it a debug signal as suggested by Mohammed Shafi
sudo modprobe ath9k_htc debug=0x1

It still show the same error.

Any other hints?

Torin

On Wed, Mar 16, 2011 at 11:16 PM, Mohammed Shafi <shafi.wireless <at> gmail.com> wrote:
On Wed, Mar 16, 2011 at 2:36 PM, Torin Nguyen <torin <at> chumby.com> wrote:
> Thanks Rajkumar,
>
> Now it gives me this
> [110770.802733] usb 2-1.2: ath9k_htc: Firmware - ar9271.fw download failed
> [110770.802759] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [110770.802789] usbcore: registered new interface driver ath9k_hif_usb
>
> I simply replaced /lib/firmware/ar9271.fw with the new one.
> Do I need to do anything else?
> Fyi, I'm on Ubuntu 10.04

that should be fine. still not working?

>
> Torin
>
>
> On Wed, Mar 16, 2011 at 4:54 PM, Rajkumar Manoharan <rmanoharan <at> atheros.com>
> wrote:
>>
>> On Wed, Mar 16, 2011 at 12:21:05PM +0530, Torin Nguyen wrote:
>> > I have just compiled the bleeding edge compat-wireless (15-Mar-2011)
>> > with AP Mode patch applied & use custom firmware as described here
>> >
>> > http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode<mailto:ath9k-devel <at> lists.ath9k.org>
>> >
>> Torin,
>>
>> It seems to be Sujith could not update the above like. Please use the
>> attached
>> customize firmware.
>>
>> --
>> Rajkumar
>
>
> _______________________________________________
> ath9k-devel mailing list

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Rajkumar Manoharan | 17 Mar 06:14 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

On Wed, Mar 16, 2011 at 02:36:13PM +0530, Torin Nguyen wrote:
> Thanks Rajkumar,
> 
> Now it gives me this
> [110770.802733] usb 2-1.2: ath9k_htc: Firmware - ar9271.fw download failed
> [110770.802759] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [110770.802789] usbcore: registered new interface driver ath9k_hif_usb
> 
> I simply replaced /lib/firmware/ar9271.fw with the new one.
> Do I need to do anything else?
> Fyi, I'm on Ubuntu 10.04
>
After replacing the firmware, re-plug the usb dongle again to ensure that the
latest firware got downloaded to the target.

--
Rajkumar
> 
> On Wed, Mar 16, 2011 at 4:54 PM, Rajkumar Manoharan
<rmanoharan <at> atheros.com<mailto:rmanoharan <at> atheros.com>> wrote:
> On Wed, Mar 16, 2011 at 12:21:05PM +0530, Torin Nguyen wrote:
> > I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use
custom firmware as described here
> > http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode<mailto:ath9k-devel <at> lists.ath9k.org<mailto:ath9k-devel <at> lists.ath9k.org>>
> >
> Torin,
> 
> It seems to be Sujith could not update the above like. Please use the attached
> customize firmware.
> 
> --
> Rajkumar
> 
Sujith | 17 Mar 05:18 2011
Picon

ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

Torin Nguyen wrote:
> I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use
custom firmware as described here
> http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode
> 
> But the it failed to initialize. Here's the dmesg:
> [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> [101727.404192] ath: Couldn't reset chip
> [101727.404200] ath: Unable to initialize hardware; initialization status: -5
> [101727.404206] ath: Unable to initialize hardware; initialization status: -5
> [101727.404216] Failed to initialize the device
> [101727.405340] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [101727.405383] usbcore: registered new interface driver ath9k_hif_usb
> 
> There is no wireless extension found when I do a 'iwconfig'.
> 
> Interestingly, this driver (ap-mode patched) works fine in station mode with firmware from here
> http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
> 
> Please tell me what could go wrong?

The updated patchset is here: http://marc.info/?l=linux-wireless&m=129955421315351&w=2
The FW is here: http://marc.info/?l=linux-wireless&m=129946435611273&w=2

The AP section on ath9k_htc page on wireless.kernel.org is obsolete.

Sujith
Sujith | 17 Mar 11:02 2011
Picon

ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

Sujith wrote:
> The updated patchset is here: http://marc.info/?l=linux-wireless&m=129955421315351&w=2
> The FW is here: http://marc.info/?l=linux-wireless&m=129946435611273&w=2
> 
> The AP section on ath9k_htc page on wireless.kernel.org is obsolete.

The page has been updated now, so the latest patchset and FW can be obtained from:
http://wireless.kernel.org/en/users/Drivers/ath9k_htc#AP_Mode

Sujith
Torin Nguyen | 22 Mar 06:42 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

I have been trying this firmware with several version of compat-wireless nightly build from 08-Mar (1 day after the patch) to 17-Mar, using the same patch.
They all failed with various error messages.

This is if I connect the wireless dongle before boot
[   20.922691] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51296
[   21.920743] usb 2-1.2: ath9k_htc: Target is unresponsive
[   21.920799] Failed to initialize the device
[   21.922009] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22

This is if I connect the wireless dongle after boot
> [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> [101727.404192] ath: Couldn't reset chip
> [101727.404200] ath: Unable to initialize hardware; initialization status: -5

Is there any way to debug further to see what's wrong?



On Thu, Mar 17, 2011 at 12:18 PM, Sujith <m.sujith <at> gmail.com> wrote:
Torin Nguyen wrote:
> I have just compiled the bleeding edge compat-wireless (15-Mar-2011) with AP Mode patch applied & use custom firmware as described here
> http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode
>
> But the it failed to initialize. Here's the dmesg:
> [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> [101727.404192] ath: Couldn't reset chip
> [101727.404200] ath: Unable to initialize hardware; initialization status: -5
> [101727.404206] ath: Unable to initialize hardware; initialization status: -5
> [101727.404216] Failed to initialize the device
> [101727.405340] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> [101727.405383] usbcore: registered new interface driver ath9k_hif_usb
>
> There is no wireless extension found when I do a 'iwconfig'.
>
> Interestingly, this driver (ap-mode patched) works fine in station mode with firmware from here
> http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=tree
>
> Please tell me what could go wrong?

The updated patchset is here: http://marc.info/?l=linux-wireless&m=129955421315351&w=2
The FW is here: http://marc.info/?l=linux-wireless&m=129946435611273&w=2

The AP section on ath9k_htc page on wireless.kernel.org is obsolete.

Sujith

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Sujith | 22 Mar 07:14 2011
Picon

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

Torin Nguyen wrote:
> I have been trying this firmware with several version of compat-wireless nightly build from 08-Mar (1 day
after the patch) to 17-Mar, using the same patch.
> They all failed with various error messages.
> 
> This is if I connect the wireless dongle before boot
> [   20.922691] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51296
> [   21.920743] usb 2-1.2: ath9k_htc: Target is unresponsive
> [   21.920799] Failed to initialize the device
> [   21.922009] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
> 
> This is if I connect the wireless dongle after boot
> > [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> > [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> > [101727.404192] ath: Couldn't reset chip
> > [101727.404200] ath: Unable to initialize hardware; initialization status: -5
> 
> Is there any way to debug further to see what's wrong?

Please try with the latest patchset/fw at: http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode
Also, what is the PID of your device ? (sudo lsusb -v | grep -i atheros)

Sujith
Torin Nguyen | 22 Mar 10:26 2011

Re: ath9k_htc with AP Mode patch failed to initialized with ap-patched firmware

It works now. Firmware & driver & AP mode all work.

But, the patch cannot be applied over compat-wireless-2.6.38-3-ns.tar.bz2 as stated on the website.
There are many unresolved hunks, not even manually.
I guess you should fix the website?

Instead, I applied it over yesterday's compat-wireless tarball (21-03-2011).

Thanks a lot for your support.



On Tue, Mar 22, 2011 at 2:14 PM, Sujith <m.sujith <at> gmail.com> wrote:
Torin Nguyen wrote:
> I have been trying this firmware with several version of compat-wireless nightly build from 08-Mar (1 day after the patch) to 17-Mar, using the same patch.
> They all failed with various error messages.
>
> This is if I connect the wireless dongle before boot
> [   20.922691] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51296
> [   21.920743] usb 2-1.2: ath9k_htc: Target is unresponsive
> [   21.920799] Failed to initialize the device
> [   21.922009] ath9k_hif_usb: probe of 2-1.2:1.0 failed with error -22
>
> This is if I connect the wireless dongle after boot
> > [101724.671119] usb 2-1.2: ath9k_htc: Transferred FW: ar9271.fw, size: 51280
> > [101724.936653] usb 2-1.2: ath9k_htc: HTC initialized with 33 credits
> > [101727.404192] ath: Couldn't reset chip
> > [101727.404200] ath: Unable to initialize hardware; initialization status: -5
>
> Is there any way to debug further to see what's wrong?

Please try with the latest patchset/fw at: http://linuxwireless.org/en/users/Drivers/ath9k_htc#AP_Mode
Also, what is the PID of your device ? (sudo lsusb -v | grep -i atheros)

Sujith

_______________________________________________
ath9k-devel mailing list
ath9k-devel <at> lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Gmane