RE: [PATCH v2] mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets

2015-12-03 Thread Adam R. Welle
>                 if (rx_status.freq != data2->channel->center_freq && > (!data2->tmp_chan || >  rx_status.freq != data2->tmp_chan->center_freq)) { Perfect, thank you! Adam N�r��yb�X��ǧv�^�)޺{.n�+{��*ޕ�,�{ay�ʇڙ�,j��f���h���z��w��� ���j:+v��

Re: [PATCH v2] mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets

2015-12-03 Thread Johannes Berg
On Wed, 2015-12-02 at 19:30 +, Adam R. Welle wrote: > > Applied. I added locking and made a change to accept both the off- > > channel and non-offchannel since the internal datapath also does > > that > > and we don't stop other operation for off-channel. > > Does your change only throw away p

RE: [PATCH v2] mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets

2015-12-02 Thread Adam R. Welle
> Applied. I added locking and made a change to accept both the off- > channel and non-offchannel since the internal datapath also does that > and we don't stop other operation for off-channel. Does your change only throw away packets when tmp_chan is set? I was under the impression that most of t

Re: [PATCH v2] mac80211_hwsim: check ATTR_FREQ for wmediumd (netlink) packets

2015-12-02 Thread Johannes Berg
On Tue, 2015-12-01 at 17:13 -0500, arwe...@cert.org wrote: > From: Adam Welle > > If a packet is received from netlink with the frequency value set it > is > checked against the current radio's frequency and discarded if > different. > The frequency is also checked against data2->tmp_chan if non-