RE: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-27 Thread Peng Xu
> Is a new version of this patch hinging only on this? We'd love to have a > fixed- > up one :-) The new version covers the use cases mentioned by Jouni as the OUIs of the vendor commands has the format of OUI + type + subtype. For other format of vendor commands, they will be treated as

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-27 Thread Johannes Berg
Hi, > As you pointed out the use cases for having vendor elements in MBSSID > subelements, what is > your suggestion to identify and process the vendor elements? Is a new version of this patch hinging only on this? We'd love to have a fixed-up one :-) johannes

RE: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Peng Xu
> On Tue, Nov 14, 2017 at 02:39:31PM +, Peng Xu wrote: > > > I'm not even sure why this is necessary anyway though, do we really > > > think vendors will expect to be able to put vendor IEs inside the > > > subelements and override the ones outside? > > > > > > Is there even any point for the

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Jouni Malinen
On Tue, Nov 14, 2017 at 02:39:31PM +, Peng Xu wrote: > > I'm not even sure why this is necessary anyway though, do we really think > > vendors will expect to be able to put vendor IEs inside the subelements and > > override the ones outside? > > > > Is there even any point for the WFA ones?

RE: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Peng Xu
> > Right, not really. > > I'm not even sure why this is necessary anyway though, do we really think > vendors will expect to be able to put vendor IEs inside the subelements and > override the ones outside? > > Is there even any point for the WFA ones? It seems WMM really ought to be > the

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Johannes Berg
> > > > This may be right for the WFA/Microsoft OUI, but not necessary anything > > else? > > > > Right, I only considered the most common cases since I did not find a > generic way to compare two vendor elements. Any suggestion? Right, not really. I'm not even sure why this is necessary

RE: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Peng Xu
> > > > It is OUI + type + subTye. > > Ah, right, type/subtype. > > Still, this is problematic, because there's nothing that says that the vendor > IE > must have OUI + type + subtype, the spec only says OUI + vendor specific > data. > > This may be right for the WFA/Microsoft OUI, but not

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Johannes Berg
On Tue, 2017-11-14 at 14:20 +, Peng Xu wrote: > > > > > + if (tmp_old[0] == WLAN_EID_VENDOR_SPECIFIC) { > > > + if (!memcmp(tmp_old + 2, tmp + 2, 5)) { > > > + /* same vendor ie, copy from new ie > > > > */ > > > +

RE: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Peng Xu
> > > + if (tmp_old[0] == WLAN_EID_VENDOR_SPECIFIC) { > > + if (!memcmp(tmp_old + 2, tmp + 2, 5)) { > > + /* same vendor ie, copy from new ie > */ > > + memcpy(pos, tmp, tmp[1] + 2); >

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-14 Thread Johannes Berg
> + if (tmp_old[0] == WLAN_EID_VENDOR_SPECIFIC) { > + if (!memcmp(tmp_old + 2, tmp + 2, 5)) { > + /* same vendor ie, copy from new ie */ > + memcpy(pos, tmp, tmp[1] + 2); > +

Re: [RFC] cfg80211: Implement Multiple BSSID capability in scanning

2017-11-13 Thread Johannes Berg
Hi, Thanks for working on this. > +u8 *gen_new_bssid(const u8 *bssid, u8 max_bssid, u8 mbssid_index, gfp_t gfp) I looks like this should be static? I'm also pretty sure you leak the result, I guess you shouldn't allocate memory here. Just passing in a pointer to a buffer (that could be on the