Re: [PATCH 1/2] hostapd: dfs: allow switch to available channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 09, 2020 at 01:44:32PM +0200, Janusz Dziedzic wrote:
> pt., 9 paź 2020 o 10:37 Jouni Malinen <j@xxxxx> napisał(a):
> >
> > On Sat, Oct 03, 2020 at 02:00:12PM +0200, Janusz Dziedzic wrote:
> > > For EU, where preCAC is allowed, we should
> > > allow switch to DFS available channels, instead
> > > of restart BSS.
> >
> > Could you please clarify how this is supposed to work in regulatory
> > domains that do not allow previously done CAC results to be used? The
> > test case added in 2/2 seems to pass even if running the AP with country
> > US or CA..
> 
> Test itself choose/force EU country and expect AP-CSA-FINISHED
> +        # Toggle regulatory - clean all preCAC
> +        hostapd.cmd_execute(apdev[0], ['iw', 'reg', 'set', "US"])
> +
> +        hapd = start_dfs_ap(apdev[0], country="PL")

And that "PL" is indeed what I replaced with "CA" and "US" to confirm
that patch 1/2 did not enable something that it shouldn't enable..
However, the test was still passing when the country code was pointing
to non-ETSI country. Can you please clarify why this is the case and how
does this protect expected functionality (new CAC required) outside the
ETSI regulatory domain?

> I can add negative test also, where will set (we could pass country as a param)
> hapd = start_dfs_ap(apdev[0], country="US")
> and will expect fail - (we will not get AP-CSA-FINISHED - while AP
> will be restarted).

It would be useful to do that as well especially since I was trying to
do that exact check just to notice that the expected second CAC did not
happen.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux