Search Linux Wireless

Re: [PATCH 2/2] cfg80211: ignore invalid BSSIDs when looking for BSSes

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

 



On Thu, 2014-04-10 at 09:00 +0200, Antonio Quartulli wrote:
> On 09/04/14 22:39, Johannes Berg wrote:
> > diff --git a/net/wireless/scan.c b/net/wireless/scan.c
> > index 7d09a712cb1f..746c56ebd66c 100644
> > --- a/net/wireless/scan.c
> > +++ b/net/wireless/scan.c
> > @@ -540,6 +540,8 @@ struct cfg80211_bss *cfg80211_get_bss(struct wiphy *wiphy,
> >  			continue;
> >  		if (channel && bss->pub.channel != channel)
> >  			continue;
> > +		if (!is_valid_ether_addr(bss->pub.bssid))
> > +			continue;
> 
> Wouldn't it be better to prevent such entry to end up in the bss list at
> all? (i.e. filtering during the scan?)

I thought about that, but I'm not so sure.

On the one hand, that would make sense since it's unusable, on the other
hand it could cause confusion if you don't see some other network that
you expect to show up ...

And then again, if you can click the network in the UI and then it won't
connect to it, that also causes confusion. I'm not sure what the best
way is ...

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux