All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zefir Kurtisi <zefir.kurtisi@neratec.com>
To: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org,
	mathias.kretschmer@fokus.fraunhofer.de,
	Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Subject: Re: [PATCH] mac80211: fix recalc_radar hwconf sync problem
Date: Fri, 05 Apr 2013 12:08:05 +0200	[thread overview]
Message-ID: <515EA285.5010004@neratec.com> (raw)
In-Reply-To: <20130404182219.GA24704@pandem0nium>

On 04/04/2013 08:22 PM, Simon Wunderlich wrote:
> [...]
> 
> So the patch does not resolve the problem for you? I've checked it again with
> a little printk in ath9ks config function.
> 
> With the patch the radar_enabled flag gets disabled when changing the channel (5500 -> 5200).
> If I don't apply the patch, it stays enabled. I did the same thing (start hostapd on
> channel 5500, wait for CAC, echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/simulate_radar).
> 
> Maybe I'm missing something?
> 
Hi Simon,

here is how to reproduce (assuming you are using the patches for DFS testing on
ath9k posted yesterday).

1) enable DFS log output at ath9k
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug

2) run hostapd on DFS channel, my config is as follows
interface=wlan3
driver=nl80211
ssid=testap
hw_mode=a
channel=108
wmm_enabled=1
ieee80211d=1
ieee80211h=1
country_code=DE
wpa_group_rekey=300
wpa_gmk_rekey=640
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_passphrase=testtest

The log output I see is:
Apr 5 11:44:00: [ 335.210749] IPv6: ADDRCONF(NETDEV_UP): wlan3: link is not ready
Apr 5 11:44:00: [ 335.221152] ath: phy0: DFS enabled at freq 5540
Apr 5 11:44:04: [ 339.234487] ath: phy0: DFS enabled at freq 5540
Apr 5 11:44:04: [ 339.260298] ath: phy0: DFS enabled at freq 5540
Apr 5 11:44:04: [ 339.262750] ath: phy0: DFS enabled at freq 5540
Apr 5 11:44:04: [ 339.262786] IPv6: ADDRCONF(NETDEV_CHANGE): wlan3: link becomes ready

So we passed the (shortened to 4s) CAC and AP is operating.

3) fire radar
echo 1 > /sys/kernel/debug/ieee80211/phy0/ath9k/simulate_radar

I see:
Apr 5 11:44:25: [  360.294667] ath: phy0: DFS enabled at freq 5540
Apr 5 11:44:25: [  360.297217] ath: phy0: DFS enabled at freq 5240


The 'DFS enabled ...' message is print if ath9k_config() is called with
hw->conf.radar_enabled, which should never happen for freq 5240.


I wish I had time to learn using ftrace to track it down... As said before, it is
not critical for ath9k, but might be a hint to something going wrong above.


Thanks,
Zefir


  reply	other threads:[~2013-04-05 10:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02 16:39 [PATCH] mac80211: fix recalc_radar hwconf sync problem Simon Wunderlich
2013-04-03 12:46 ` Johannes Berg
2013-04-04 13:38   ` Zefir Kurtisi
2013-04-04 18:22     ` Simon Wunderlich
2013-04-05 10:08       ` Zefir Kurtisi [this message]
2013-04-05 10:11         ` Zefir Kurtisi
2013-04-05 11:29         ` Simon Wunderlich
2013-04-05 12:11           ` Zefir Kurtisi
2013-04-05 11:22       ` Johannes Berg
2013-04-05 12:16         ` Simon Wunderlich
2013-04-05 12:36           ` Johannes Berg
2013-04-08 11:51             ` Simon Wunderlich
2013-04-08 12:09             ` [PATCHv2] " Simon Wunderlich
2013-04-08 14:17               ` Zefir Kurtisi
2013-04-08 14:29               ` Johannes Berg
2013-04-08 17:04                 ` [PATCHv3] " Simon Wunderlich
2013-04-08 17:53                   ` Antonio Quartulli
2013-04-08 20:43                     ` [PATCHv4] " Simon Wunderlich
2013-04-09  9:50                       ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=515EA285.5010004@neratec.com \
    --to=zefir.kurtisi@neratec.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mathias.kretschmer@fokus.fraunhofer.de \
    --cc=simon.wunderlich@s2003.tu-chemnitz.de \
    --cc=siwu@hrz.tu-chemnitz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.