Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1794 (new defect)

Opened 14 years ago

Last modified 11 years ago

Unable to make madwifi for MIPS Architecture

Reported by: aneeska2k5@gmail.com Assigned to:
Priority: major Milestone:
Component: madwifi: other Version: v0.9.4
Keywords: make failure Cc:
Patch is attached: 0 Pending:

Description (Last modified by mrenzmann)

I am trying to compile madwifi Release 0.9.4 for MIPS EL 32-bit platform using mipsel-linux-gcc (GCC) 4.1.2 (ebs 20070215). While trying to make the source code the following error is reported:

Checking requirements... ok.
Checking kernel configuration... ok.
make -C /home/anees/p453/kernel_starter_kit/ SUBDIRS=/home/anees/p453/miniPCI/madwifi-0.9.4 modules
make[1]: Entering directory `/home/anees/p453/kernel_starter_kit'
CC [M]  /home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.o
mipsel-linux-gcc: unrecognized option '-EL'
/home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.c:1: error: -mips2 conflicts with the other architecture options, which specify a mips32r2 processor
make[3]: *** [/home/anees/p453/miniPCI/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/home/anees/p453/miniPCI/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/home/anees/p453/miniPCI/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/home/anees/p453/kernel_starter_kit'
make: *** [modules] Error 2

I have set up the Cross compiler and kernel path appropriately. The kernel I'm using is 2.6.22.14. Can anyone help me figure out what is wrong ?

-- anees

Change History

02/18/08 17:18:10 changed by mrenzmann

  • priority changed from critical to major.
  • version changed from v0.9.3.3 to v0.9.4.
  • description changed.

(follow-up: ↓ 3 ) 02/19/08 13:53:40 changed by anonymous

There exists a patch for madwifi in OpenWRT's trunk named 100-kernel_cflags.patch. This should fix the problem above.

(in reply to: ↑ 2 ; follow-up: ↓ 5 ) 02/19/08 15:11:49 changed by anonymous

Replying to anonymous:

There exists a patch for madwifi in OpenWRT's trunk named 100-kernel_cflags.patch. This should fix the problem above.

Thank you very much for your help. But minutes before you posted this I was able to figure that out. But changing hal/public/mips-le-elf.inc 's 71st line to COPTS+= -G 0 -mno-abicalls -fno-pic -mips32 -Wa,--trap \ fails to compile. If it is COPTS+= -G 0 -mno-abicalls -fno-pic -mips32r2 -Wa,--trap \, it compiles fine.

Making the above modification I was able to successfully compile the driver. Also install them on my board. The modules I installed are :-

$ lsmod
Module Size Used by
ath_pci 112640 0
ath_rate_sample 15488 0
ath_rate_onoe 7824 0
ath_rate_amrr 8752 0
ath_hal 239936 2 ath_pci,ath_rate_sample
wlan_xauth 1984 0
wlan_wep 7616 0
wlan_tkip 14592 0
wlan_scan_sta 16000 0
wlan_scan_ap 6624 0
wlan_ccmp 10080 0
wlan_acl 5696 0
wlan 240928 11
ath_pci,ath_rate_sample,ath_rate_onoe,ath_rate_amrr,wlan_xauth,wlan_wep,wlan_tkip,wlan_scan_sta,wlan_scan_ap,wlan_ccmp,wlan_acl

dmesg says :-

wlan: 0.9.4
wlan: mac acl policy registered
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
ath_rate_amrr: 0.1 (0.9.4)
ath_rate_onoe: 1.0 (0.9.4)
ath_rate_sample: 1.2 (0.9.4)
ath_pci: 0.9.4
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
PCI: Setting cache line size of device 0000:00:00.0 to 16 bytes
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0xd0000000, irq=28

After this I tried the following steps:-

$ wlanconfig ath0 destroy

$ wlanconfig ath0 create wlandev wifi0 wlanmode sta

$ iwconfig Warning: Driver for device eth0 has been compiled with an ancient version of Wireless Extension, while this program support version 11 and later. Some things may be broken...

eth0 `| ESSID:off/any Nickname:""

NWID:137C60 Mode:Unknown/bug Frequency:1.27702e+13 GHz Access Point: 00:00:06:00:00:00 Bit Rate=49.488 kb/s Sensitivity=2139219328/0 RTS thr=2139219328 B Fragment thr=2139219328 B Encryption key:<too big> Power Management:on

lo no wireless extensions.

wifi0 no wireless extensions.

ath0 IEEE 802.11b ESSID:"" Nickname:""

Mode:Managed Channel:0 Access Point: Not-Associated Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

$ ifconfig ath0 up

which results in :-

wifi0: ath_chan_set: unable to reset channel 1 (2412 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 11 (2462 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 52 (5260 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 60 (5300 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 36 (5180 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 44 (5220 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 2 (2417 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 4 (2427 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 8 (2447 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 10 (2457 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 42 (5210 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 58 (5290 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 160 (5800 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 (HAL status 0) wifi0: ath_chan_set: unable to reset channel 7 (2442 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 64 (5320 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 3 (2422 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 5 (2432 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 9 (2452 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 149 (5745 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 157 (5785 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 165 (5825 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 50 (5250 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 152 (5760 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)

This error is being repeated. Do you have any idea whats wrong?

-- anees

02/20/08 10:55:01 changed by aneeska2k5@gmail.com

Somebody please look into this issue and help me.

-- anees

(in reply to: ↑ 3 ; follow-up: ↓ 6 ) 02/28/08 10:03:06 changed by anonymous

Replying to anonymous:

Replying to anonymous:

There exists a patch for madwifi in OpenWRT's trunk named 100-kernel_cflags.patch. This should fix the problem above.

Thank you very much for your help. But minutes before you posted this I was able to figure that out. But changing hal/public/mips-le-elf.inc 's 71st line to COPTS+= -G 0 -mno-abicalls -fno-pic -mips32 -Wa,--trap \ fails to compile. If it is COPTS+= -G 0 -mno-abicalls -fno-pic -mips32r2 -Wa,--trap \, it compiles fine. Making the above modification I was able to successfully compile the driver. Also install them on my board. The modules I installed are :- $ lsmod
Module Size Used by
ath_pci 112640 0
ath_rate_sample 15488 0
ath_rate_onoe 7824 0
ath_rate_amrr 8752 0
ath_hal 239936 2 ath_pci,ath_rate_sample
wlan_xauth 1984 0
wlan_wep 7616 0
wlan_tkip 14592 0
wlan_scan_sta 16000 0
wlan_scan_ap 6624 0
wlan_ccmp 10080 0
wlan_acl 5696 0
wlan 240928 11
ath_pci,ath_rate_sample,ath_rate_onoe,ath_rate_amrr,wlan_xauth,wlan_wep,wlan_tkip,wlan_scan_sta,wlan_scan_ap,wlan_ccmp,wlan_acl dmesg says :-
wlan: 0.9.4
wlan: mac acl policy registered
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
ath_rate_amrr: 0.1 (0.9.4)
ath_rate_onoe: 1.0 (0.9.4)
ath_rate_sample: 1.2 (0.9.4)
ath_pci: 0.9.4
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
PCI: Setting cache line size of device 0000:00:00.0 to 16 bytes
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0xd0000000, irq=28
After this I tried the following steps:- $ wlanconfig ath0 destroy $ wlanconfig ath0 create wlandev wifi0 wlanmode sta $ iwconfig Warning: Driver for device eth0 has been compiled with an ancient version of Wireless Extension, while this program support version 11 and later. Some things may be broken... eth0 `| ESSID:off/any Nickname:"" NWID:137C60 Mode:Unknown/bug Frequency:1.27702e+13 GHz Access Point: 00:00:06:00:00:00 Bit Rate=49.488 kb/s Sensitivity=2139219328/0 RTS thr=2139219328 B Fragment thr=2139219328 B Encryption key:<too big> Power Management:on lo no wireless extensions. wifi0 no wireless extensions. ath0 IEEE 802.11b ESSID:"" Nickname:"" Mode:Managed Channel:0 Access Point: Not-Associated Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 $ ifconfig ath0 up which results in :- wifi0: ath_chan_set: unable to reset channel 1 (2412 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 11 (2462 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 52 (5260 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 60 (5300 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 36 (5180 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 44 (5220 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 2 (2417 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 4 (2427 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 8 (2447 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 10 (2457 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 42 (5210 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 58 (5290 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 160 (5800 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 (HAL status 0) wifi0: ath_chan_set: unable to reset channel 7 (2442 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 64 (5320 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 3 (2422 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 5 (2432 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 9 (2452 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 149 (5745 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 157 (5785 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 165 (5825 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 50 (5250 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 152 (5760 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
This error is being repeated. Do you have any idea whats wrong? -- anees

I figured out what was wrong. It was some bus arbitration issue with the board which when solved, solved the whole issue. But only after applying the above mentioned patch i was able to compile the driver.

Thank you very much for the interest you people have shown in this matter

-- anees k A

(in reply to: ↑ 5 ) 02/28/08 10:03:51 changed by anonymous

Replying to anonymous:

Replying to anonymous:

Replying to anonymous:

There exists a patch for madwifi in OpenWRT's trunk named 100-kernel_cflags.patch. This should fix the problem above.

Thank you very much for your help. But minutes before you posted this I was able to figure that out. But changing hal/public/mips-le-elf.inc 's 71st line to COPTS+= -G 0 -mno-abicalls -fno-pic -mips32 -Wa,--trap \ fails to compile. If it is COPTS+= -G 0 -mno-abicalls -fno-pic -mips32r2 -Wa,--trap \, it compiles fine. Making the above modification I was able to successfully compile the driver. Also install them on my board. The modules I installed are :- $ lsmod
Module Size Used by
ath_pci 112640 0
ath_rate_sample 15488 0
ath_rate_onoe 7824 0
ath_rate_amrr 8752 0
ath_hal 239936 2 ath_pci,ath_rate_sample
wlan_xauth 1984 0
wlan_wep 7616 0
wlan_tkip 14592 0
wlan_scan_sta 16000 0
wlan_scan_ap 6624 0
wlan_ccmp 10080 0
wlan_acl 5696 0
wlan 240928 11
ath_pci,ath_rate_sample,ath_rate_onoe,ath_rate_amrr,wlan_xauth,wlan_wep,wlan_tkip,wlan_scan_sta,wlan_scan_ap,wlan_ccmp,wlan_acl dmesg says :-
wlan: 0.9.4
wlan: mac acl policy registered
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)
ath_rate_amrr: 0.1 (0.9.4)
ath_rate_onoe: 1.0 (0.9.4)
ath_rate_sample: 1.2 (0.9.4)
ath_pci: 0.9.4
PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
PCI: Setting cache line size of device 0000:00:00.0 to 16 bytes
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 5.9 phy 4.3 radio 3.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0xd0000000, irq=28
After this I tried the following steps:- $ wlanconfig ath0 destroy $ wlanconfig ath0 create wlandev wifi0 wlanmode sta $ iwconfig Warning: Driver for device eth0 has been compiled with an ancient version of Wireless Extension, while this program support version 11 and later. Some things may be broken... eth0 `| ESSID:off/any Nickname:"" NWID:137C60 Mode:Unknown/bug Frequency:1.27702e+13 GHz Access Point: 00:00:06:00:00:00 Bit Rate=49.488 kb/s Sensitivity=2139219328/0 RTS thr=2139219328 B Fragment thr=2139219328 B Encryption key:<too big> Power Management:on lo no wireless extensions. wifi0 no wireless extensions. ath0 IEEE 802.11b ESSID:"" Nickname:"" Mode:Managed Channel:0 Access Point: Not-Associated Bit Rate:0 kb/s Tx-Power:0 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=0/70 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 $ ifconfig ath0 up which results in :- wifi0: ath_chan_set: unable to reset channel 1 (2412 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 11 (2462 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 52 (5260 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 60 (5300 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 36 (5180 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 44 (5220 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 2 (2417 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 4 (2427 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 8 (2447 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 10 (2457 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 42 (5210 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 58 (5290 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 160 (5800 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 153 (5765 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 6 (2437 MHz) flags 0xc0 (HAL status 0) wifi0: ath_chan_set: unable to reset channel 7 (2442 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 64 (5320 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 48 (5240 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 3 (2422 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 5 (2432 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 9 (2452 MHz) flags 0xc0 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 149 (5745 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 157 (5785 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 165 (5825 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 50 (5250 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 152 (5760 MHz) flags 0x150 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 40 (5200 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 56 (5280 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
wifi0: ath_chan_set: unable to reset channel 161 (5805 MHz) flags 0x140 'Hardware didn't respond as expected' (HAL status 3)
This error is being repeated. Do you have any idea whats wrong? -- anees

I figured out what was wrong. It was some bus arbitration issue with the board which when solved, solved the whole issue. But only after applying the above mentioned patch i was able to compile the driver. Thank you very much for the interest you people have shown in this matter -- anees k A

Please conside this ticket as closed.

Thanks and regards

-- anees k A

03/07/08 09:07:09 changed by anonymous

where can I get the 100-kernel_cflags.patch?

03/07/08 10:06:19 changed by anonymous

Do a google search !!!

11/07/08 10:04:39 changed by anonymous

Anees,

"I figured out what was wrong. It was some bus arbitration issue with the board which when solved, solved the whole issue. But only after applying the above mentioned patch i was able to compile the driver."

Can you be more specific in what the arbitration error was, on the board? We see the same issue on our board..

Thanks, /Johannes

(in reply to: ↑ description ) 03/03/11 11:12:31 changed by ztt2byg@163.com

I have the same problem. Have you solved this problem?