Return-path: Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:40763 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755823Ab3AWMts (ORCPT ); Wed, 23 Jan 2013 07:49:48 -0500 Date: Wed, 23 Jan 2013 13:49:42 +0100 From: Simon Wunderlich To: Zefir Kurtisi Cc: Johannes Berg , Simon Wunderlich , linux-wireless@vger.kernel.org, victorg@ti.com, linville@tuxdriver.com, kgiori@qca.qualcomm.com, adrian@freebsd.org, j@w1.fi, coelho@ti.com, igalc@ti.com, nbd@nbd.name, mathias.kretschmer@fokus.fraunhofer.de, Simon Wunderlich Subject: Re: [PATCHv6 3/6] nl80211/cfg80211: add radar detection command/event Message-ID: <20130123124942.GB23989@pandem0nium> (sfid-20130123_135002_817949_D07834AB) References: <1357650251-17425-1-git-send-email-siwu@hrz.tu-chemnitz.de> <1357650251-17425-4-git-send-email-siwu@hrz.tu-chemnitz.de> <1358376672.15012.37.camel@jlt4.sipsolutions.net> <20130117134034.GC19552@pandem0nium> <1358546080.7922.36.camel@jlt4.sipsolutions.net> <50FD1C06.1050300@neratec.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CdrF4e02JqNVZeln" In-Reply-To: <50FD1C06.1050300@neratec.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: --CdrF4e02JqNVZeln Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Zefir, On Mon, Jan 21, 2013 at 11:44:22AM +0100, Zefir Kurtisi wrote: > On 01/18/2013 10:54 PM, Johannes Berg wrote: > > On Thu, 2013-01-17 at 14:40 +0100, Simon Wunderlich wrote: > >=20 > >> Actually there is no limit how long a channel is considered "available= ", at > >> least in ETSI. ETSI EN 301-893 v1.4.1 had a limit of 24 hours for that, > >> but that was removed in v1.5.1 and didn't re-appear since then (curren= t is > >> v1.7.1). > >=20 > > Huh indeed, I would have expected that to be there. It does have a > > non-occupancy time though (30 minutes), maybe we should implement that? > >=20 > No, why be more restrictive than regulatory demands? >=20 > With the recent incremental updates, a general note: Victor's initial app= roach was > to keep all logic in hostapd and minimize the modifications in mac by only > ensuring CAC times there. If NOP handling is also added to mac, we'd have > everything needed to handle DFS channel states available. With hostapd on= ly left > to do the selection of the channel to switch to after a radar detection, = it might > make sense to move everything down to mac. I understand that questioning = the > design that late is not helpful, at the same time and since the initial p= ath was > left, it might be worth considering. Actually questioning the design NOW is a good idea, we are already question= ing it through the last patches and better bring up the issues now than later. We = have started from the simple hostap-handles-everything approach and have seen some points are mis= sing when we think about multi interfaces etc for the future (and implementation issu= es of course). If we move channel states (available/unavailable) already into the kernel s= pace, we might as well check for other states (already doing CAC, not valid until). Maybe = it's better like this than splitting the management over hostapd and cfg/mac80211? > > I'm also thinking with the next regdb format update we should allow > > specifying these timeouts etc. there. > >=20 > > Does anyone have the relevant FCC rules? I can't find anything with > > google ... > >=20 > The FCC 06-96 document (freely available, e.g. > http://hraunfoss.fcc.gov/edocs_public/attachmatch/FCC-06-96A1.pdf) seems = to be the > most recent one. Skimming over I did not find a requirement for the valid= ity > period after CAC. >=20 Thanks for pointing us to that doc. Couldn't find anything either, so I'd j= ust skip any "validity" for now. > >> But we can move the CAC/timeout in the wdev and have keep a flag field= in > >> the channel struct instead, marking the channel as available, unavaila= ble, etc. > >> > >> What do you think? > >=20 > > I think that would make sense. Probably available/unavailable and > > "non-occupancy until"? > >=20 > At that stage, we would have half of all potential states (UNKNOWN, AVAIL= ABLE, > OPERATING, UNAVAILABLE, USABLE, SCANNING) covered, so a current state per= channel > and the time it was entered would give everything required for the comple= te state > machine in mac. Sounds good! Will look into this ... Thanks, Simon --CdrF4e02JqNVZeln Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlD/3GUACgkQrzg/fFk7axZH3gCgipBMAWROM3ksgx2eMXcxRFAA Qe0AoL46+T3mLpGMg9K48qPLWO5AhBfT =s2iO -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln--