2011-12-15 07:54:11

by Mohammed Shafi

[permalink] [raw]
Subject: Re: wierless hardware using ath9k driver on AP mode leads to kernel panic

On Thu, Dec 15, 2011 at 12:55 PM, Ashwin Mendonca <[email protected]> wrote:
> I tried the bleeding edge build of compat-wireless
> (compat-wireless-2011-12-14 build) on Linux-3.1.5. It still leads to kernel
> panic. I manually got the AP up with these steps:
>
> 1. Removed ip from eth0
> 2. Created a bridge with brctl
> 3. Added eth0 to br0
> 4. Ran hostapd with my con file. And it showed this error:
> ??? l2_packet_receive - recvfrom: Network is down
> 5. Tried to connect my client devices. None were getting authenticated.
> 6. I assigned an ip to br0. Client got authenticated. System on AP mode
> froze.
>
> My hostapd.conf:
>
> ################################################
> interface=wlan0
> bridge=br0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> hw_mode=g
> channel=1
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> auth_algs=1
> ignore_broadcast_ssid=0
> wmm_enabled=1
> wmm_ac_bk_cwmin=4
> wmm_ac_bk_cwmax=10
> wmm_ac_bk_aifs=7
> wmm_ac_bk_txop_limit=0
> wmm_ac_bk_acm=0
> wmm_ac_be_aifs=3
> wmm_ac_be_cwmin=4
> wmm_ac_be_cwmax=10
> wmm_ac_be_txop_limit=0
> wmm_ac_be_acm=0
> wmm_ac_vi_aifs=2
> wmm_ac_vi_cwmin=3
> wmm_ac_vi_cwmax=4
> wmm_ac_vi_txop_limit=94
> wmm_ac_vi_acm=0
> wmm_ac_vo_aifs=2
> wmm_ac_vo_cwmin=2
> wmm_ac_vo_cwmax=3
> wmm_ac_vo_txop_limit=47
> wmm_ac_vo_acm=0
> eapol_key_index_workaround=0
> eap_server=0
> own_ip_addr=127.0.0.1
> wpa=3
> wpa_passphrase=ashwinalwyn
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=TKIP
> rsn_pairwise=CCMP
>
with this config file i had a freeze! with 3.2.rc1 compat
wireless.let me analyze with latest build


2011-12-15 09:06:55

by Mohammed Shafi

[permalink] [raw]
Subject: Re: wierless hardware using ath9k driver on AP mode leads to kernel panic

On Thu, Dec 15, 2011 at 1:24 PM, Mohammed Shafi
<[email protected]> wrote:
> On Thu, Dec 15, 2011 at 12:55 PM, Ashwin Mendonca <[email protected]> wrote:
>> I tried the bleeding edge build of compat-wireless
>> (compat-wireless-2011-12-14 build) on Linux-3.1.5. It still leads to kernel
>> panic. I manually got the AP up with these steps:
>>
>> 1. Removed ip from eth0
>> 2. Created a bridge with brctl
>> 3. Added eth0 to br0
>> 4. Ran hostapd with my con file. And it showed this error:
>> ??? l2_packet_receive - recvfrom: Network is down
>> 5. Tried to connect my client devices. None were getting authenticated.
>> 6. I assigned an ip to br0. Client got authenticated. System on AP mode
>> froze.
>>
>> My hostapd.conf:
>>
>> ################################################
>> interface=wlan0
>> bridge=br0
>> driver=nl80211
>> logger_syslog=-1
>> logger_syslog_level=2
>> logger_stdout=-1
>> logger_stdout_level=2
>> dump_file=/tmp/hostapd.dump
>> ctrl_interface=/var/run/hostapd
>> ctrl_interface_group=0
>> ssid=test
>> hw_mode=g
>> channel=1
>> beacon_int=100
>> dtim_period=2
>> max_num_sta=255
>> rts_threshold=2347
>> fragm_threshold=2346
>> macaddr_acl=0
>> auth_algs=1
>> ignore_broadcast_ssid=0
>> wmm_enabled=1
>> wmm_ac_bk_cwmin=4
>> wmm_ac_bk_cwmax=10
>> wmm_ac_bk_aifs=7
>> wmm_ac_bk_txop_limit=0
>> wmm_ac_bk_acm=0
>> wmm_ac_be_aifs=3
>> wmm_ac_be_cwmin=4
>> wmm_ac_be_cwmax=10
>> wmm_ac_be_txop_limit=0
>> wmm_ac_be_acm=0
>> wmm_ac_vi_aifs=2
>> wmm_ac_vi_cwmin=3
>> wmm_ac_vi_cwmax=4
>> wmm_ac_vi_txop_limit=94
>> wmm_ac_vi_acm=0
>> wmm_ac_vo_aifs=2
>> wmm_ac_vo_cwmin=2
>> wmm_ac_vo_cwmax=3
>> wmm_ac_vo_txop_limit=47
>> wmm_ac_vo_acm=0
>> eapol_key_index_workaround=0
>> eap_server=0
>> own_ip_addr=127.0.0.1
>> wpa=3
>> wpa_passphrase=ashwinalwyn
>> wpa_key_mgmt=WPA-PSK
>> wpa_pairwise=TKIP
>> rsn_pairwise=CCMP
>>
> with this config file i had a freeze! ?with 3.2.rc1 compat
> wireless.let me analyze with latest build

i also got the stack trace, and it seems to be a same issue we had for
STA. we are doing aggregation related stuff while the aggregation
itself is disabled. i will soon send a fix by today.

--
shafi

2011-12-15 10:25:50

by Mohammed Shafi

[permalink] [raw]
Subject: Re: wierless hardware using ath9k driver on AP mode leads to kernel panic

On Thu, Dec 15, 2011 at 2:36 PM, Mohammed Shafi
<[email protected]> wrote:
> On Thu, Dec 15, 2011 at 1:24 PM, Mohammed Shafi
> <[email protected]> wrote:
>> On Thu, Dec 15, 2011 at 12:55 PM, Ashwin Mendonca <[email protected]> wrote:
>>> I tried the bleeding edge build of compat-wireless
>>> (compat-wireless-2011-12-14 build) on Linux-3.1.5. It still leads to kernel
>>> panic. I manually got the AP up with these steps:

hi Ashwin,

can you please try the attached patch and it seems to work for me.
please go to your compat directory
cd compat...
then do patch -p1 < ./fix-ar2427-ap-mode-panic.patch

--
shafi


Attachments:
fix-ar2427-ap-mode-panic.patch (498.00 B)