linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [MAC80211] Radar detection management issue
@ 2014-04-07  9:30 Cedric VONCKEN
  2014-04-07 11:09 ` Janusz Dziedzic
  0 siblings, 1 reply; 5+ messages in thread
From: Cedric VONCKEN @ 2014-04-07  9:30 UTC (permalink / raw)
  To: linux-wireless

	I'm doing some tests in 802.11a with ath9k driver and I found a
strange behavior.

	With iw phy0 info, I check the regulation rules. I can see some
channels needs radar detection. For test I set an AP on this channel and
I can see the beacon with wireshark. But ATH9K doesn't support radar
detection, so these channels should be disabled.

	I think the problem is on MAC80211 layer. In /net/wireless/reg.c
the function map_regdom_flags set the flags IEEE80211_CHAN_RADAR if the
regulatory domain set NL80211_RRF_DFS.
	But ATH9K doesn't support the radar detection, and I don't found
in MAC80211 a test on this capability.

	I only found a capabilities in ATH9K (ATH9K_HW_CAP_DFS), but
this flag is set and not used.

	I don't know how fix this issue. For the moment I disable the
channel when the NL80211_RRF_DFS is set (in map_regdom_flags).

Cedric Voncken 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [MAC80211] Radar detection management issue
  2014-04-07  9:30 [MAC80211] Radar detection management issue Cedric VONCKEN
@ 2014-04-07 11:09 ` Janusz Dziedzic
  2014-04-07 12:04   ` voncken
  0 siblings, 1 reply; 5+ messages in thread
From: Janusz Dziedzic @ 2014-04-07 11:09 UTC (permalink / raw)
  To: Cedric VONCKEN; +Cc: linux-wireless

2014-04-07 11:30 GMT+02:00 Cedric VONCKEN <cedric.voncken@acksys.fr>:
>         I'm doing some tests in 802.11a with ath9k driver and I found a
> strange behavior.
>
>         With iw phy0 info, I check the regulation rules. I can see some
> channels needs radar detection. For test I set an AP on this channel and
> I can see the beacon with wireshark. But ATH9K doesn't support radar
> detection, so these channels should be disabled.
>
>         I think the problem is on MAC80211 layer. In /net/wireless/reg.c
> the function map_regdom_flags set the flags IEEE80211_CHAN_RADAR if the
> regulatory domain set NL80211_RRF_DFS.
>         But ATH9K doesn't support the radar detection, and I don't found
> in MAC80211 a test on this capability.
>
>         I only found a capabilities in ATH9K (ATH9K_HW_CAP_DFS), but
> this flag is set and not used.
>
>         I don't know how fix this issue. For the moment I disable the
> channel when the NL80211_RRF_DFS is set (in map_regdom_flags).
>

This seems like a bug in ath9k (init.c) driver, when register
interface combinations.
Seems RADAR combination should be registered only in case when
ATH9K_DFS_CERTIFIED is set.

BR
Janusz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [MAC80211] Radar detection management issue
  2014-04-07 11:09 ` Janusz Dziedzic
@ 2014-04-07 12:04   ` voncken
  2014-04-07 12:53     ` Janusz Dziedzic
  0 siblings, 1 reply; 5+ messages in thread
From: voncken @ 2014-04-07 12:04 UTC (permalink / raw)
  To: 'Janusz Dziedzic', Cedric VONCKEN; +Cc: 'linux-wireless'

> >
> >         I don't know how fix this issue. For the moment I disable the
> > channel when the NL80211_RRF_DFS is set (in map_regdom_flags).
> >
> 
> This seems like a bug in ath9k (init.c) driver, when register interface
> combinations.
> Seems RADAR combination should be registered only in case when
> ATH9K_DFS_CERTIFIED is set.
	
	Thanks for the answer. 

	The ATH9K_HW_CAP_DFS is set in hw.c only  if the function
ath9k_hw_dfs_tested return true.

	In the ath9k/init.c, the function ath9k_set_hw_capab do not set any
flags in hw->flags relevant to DFS.

	I'm looking for a similar line
	if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS)
      	hw->flags |= IEEE80211_HW_xxxx;
	
	But I don't found. 

	I'm looking in net/mac80211.h the IEEE80211 flag relevant to DFS (to
add the test in ath9k init), but I don't found it.

	It seem the mac80211 do not know the hardware capability to detect
radar.

	Cedric.
> 
> BR
> Janusz


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [MAC80211] Radar detection management issue
  2014-04-07 12:04   ` voncken
@ 2014-04-07 12:53     ` Janusz Dziedzic
  2014-04-07 13:48       ` voncken
  0 siblings, 1 reply; 5+ messages in thread
From: Janusz Dziedzic @ 2014-04-07 12:53 UTC (permalink / raw)
  To: voncken; +Cc: Cedric VONCKEN, linux-wireless

2014-04-07 14:04 GMT+02:00 voncken <cedric.voncke@acksys.fr>:
>> >
>> >         I don't know how fix this issue. For the moment I disable the
>> > channel when the NL80211_RRF_DFS is set (in map_regdom_flags).
>> >
>>
>> This seems like a bug in ath9k (init.c) driver, when register interface
>> combinations.
>> Seems RADAR combination should be registered only in case when
>> ATH9K_DFS_CERTIFIED is set.
>
>         Thanks for the answer.
>
>         The ATH9K_HW_CAP_DFS is set in hw.c only  if the function
> ath9k_hw_dfs_tested return true.
>
>         In the ath9k/init.c, the function ath9k_set_hw_capab do not set any
> flags in hw->flags relevant to DFS.
>
>         I'm looking for a similar line
>         if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS)
>         hw->flags |= IEEE80211_HW_xxxx;
>
>         But I don't found.
>
>         I'm looking in net/mac80211.h the IEEE80211 flag relevant to DFS (to
> add the test in ath9k init), but I don't found it.
>
>         It seem the mac80211 do not know the hardware capability to detect
> radar.
>
Driver set this in iface_combinations (check):

  .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) |
                                       BIT(NL80211_CHAN_WIDTH_20),

BR
Janusz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [MAC80211] Radar detection management issue
  2014-04-07 12:53     ` Janusz Dziedzic
@ 2014-04-07 13:48       ` voncken
  0 siblings, 0 replies; 5+ messages in thread
From: voncken @ 2014-04-07 13:48 UTC (permalink / raw)
  To: 'Janusz Dziedzic', 'voncken'; +Cc: 'linux-wireless'

> >
> >         I'm looking in net/mac80211.h the IEEE80211 flag relevant to
> > DFS (to add the test in ath9k init), but I don't found it.
> >
> >         It seem the mac80211 do not know the hardware capability to
> > detect radar.
> >
> Driver set this in iface_combinations (check):
> 
>   .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) |
>                                        BIT(NL80211_CHAN_WIDTH_20),
> 

I'm sorry, but I don't understand:
	how the low level driver (ath9k) advise the MAC80211 driver of radar
detection capabilities.
	How the MAC80211 driver disable the channel if the DFS is not
supported by the low level driver.

Cedric.

> BR
> Janusz


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-07 15:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-07  9:30 [MAC80211] Radar detection management issue Cedric VONCKEN
2014-04-07 11:09 ` Janusz Dziedzic
2014-04-07 12:04   ` voncken
2014-04-07 12:53     ` Janusz Dziedzic
2014-04-07 13:48       ` voncken

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).