Re: [PATCH] wpa_supplicant: send event to all interfaces

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

 



=

2016-04-02 12:30 GMT+02:00 Jouni Malinen <j@xxxxx>:
> On Thu, Mar 31, 2016 at 08:53:14PM +0200, Janusz Dziedzic wrote:
>> In case we don't have ifidx and wdev_id pass
>> such event to all interfaces and bss.
>> Before we send event only to first interface and
>> in case we are using p2p-dev we send event only
>> to this one iface:
>>
>> p2p-dev-wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
>>
>> Because of that we fail hwsim test cases eg. ibss_5ghz,
>> while we never get CTRL-EVENT-REGDOM-CHANGE on wlan0.
>>
>> I also remove for_each() from wpa_supplicant_update_channel_list()
>> while this function will be called now for each interface.
>> So, seems this for_each() was a workaround for a real issue.
>
> Could you please clarify what exactly you mean with hwsim test cases
> failing? I don't see such a failure in my testing.. Is this only
> relevant for the remote test cases that you show in the example below?
>
It should also failed in case your driver using p2p-dev. In such case you will
get only REGDOM-CHANGE on p2p-dev-wlan0 (only on first interface in iface
iterations), and never get such event on wlan0.
I think you can start mac80211_hwsim with support_p2p_device=1 and run
only ibss_5ghz to reproduce this problem.

For sure my patch fix this issue and each interface get REGODOM -CHANGE.
In my case p2p-dev-wlan0 and wlan0.
But I am not sure if this will not introduce some other issue. So
clarification is required here, how should we handle events when
ifidx==-1 and wdev_id is not set. If we should send such event to all
interfaces, then my patch do exactly that.

BR
Janusz
>> Now, seems we pass test where we wait for REGDOM event
>> janusz@dell6430:/home/work/hostap/tests/remote$ ./run-tests.py -r hwsim0 -r hwsim1 -r hwsim2 -d hwsim3 -d hwsim4 -h ibss_5ghz
>
> tests/remote does not exist in hostap.git, so it is a bit difficult to
> understand this type of comments before either the changes have been
> added for that or the commit message is clearer on what exactly is being
> fixed if the same issue cannot be reproduced in the current hostap.git
> snapshot.
>
> --
> Jouni Malinen                                            PGP id EFC895FA
>
> _______________________________________________
> Hostap mailing list
> Hostap@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/hostap



-- 
Janusz Dziedzic

_______________________________________________
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