Thread (13 messages) 13 messages, 3 authors, 2017-11-27

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

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2017-11-14 12:58:18

+			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);
+					pos += tmp[1] + 2;
+				} else {
+					memcpy(pos, tmp_old, tmp_old[1] + 2);
+					pos += tmp_old[1] + 2;
This seems really strange. What's 5? Should it be 4, so you have
OUI+subelement ID?

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help