"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "net/wireless/scan.c" between
linux-4.14.148.tar.xz and linux-4.14.149.tar.xz

About: The full source of the Linux kernel 4.14.x (longterm stable)

scan.c  (linux-4.14.148.tar.xz):scan.c  (linux-4.14.149.tar.xz)
skipping to change at line 487 skipping to change at line 487
void cfg80211_bss_expire(struct cfg80211_registered_device *rdev) void cfg80211_bss_expire(struct cfg80211_registered_device *rdev)
{ {
__cfg80211_bss_expire(rdev, jiffies - IEEE80211_SCAN_RESULT_EXPIRE); __cfg80211_bss_expire(rdev, jiffies - IEEE80211_SCAN_RESULT_EXPIRE);
} }
const u8 *cfg80211_find_ie_match(u8 eid, const u8 *ies, int len, const u8 *cfg80211_find_ie_match(u8 eid, const u8 *ies, int len,
const u8 *match, int match_len, const u8 *match, int match_len,
int match_offset) int match_offset)
{ {
const struct element *elem;
/* match_offset can't be smaller than 2, unless match_len is /* match_offset can't be smaller than 2, unless match_len is
* zero, in which case match_offset must be zero as well. * zero, in which case match_offset must be zero as well.
*/ */
if (WARN_ON((match_len && match_offset < 2) || if (WARN_ON((match_len && match_offset < 2) ||
(!match_len && match_offset))) (!match_len && match_offset)))
return NULL; return NULL;
while (len >= 2 && len >= ies[1] + 2) { for_each_element_id(elem, eid, ies, len) {
if ((ies[0] == eid) && if (elem->datalen >= match_offset - 2 + match_len &&
(ies[1] + 2 >= match_offset + match_len) && !memcmp(elem->data + match_offset - 2, match, match_len))
!memcmp(ies + match_offset, match, match_len)) return (void *)elem;
return ies;
len -= ies[1] + 2;
ies += ies[1] + 2;
} }
return NULL; return NULL;
} }
EXPORT_SYMBOL(cfg80211_find_ie_match); EXPORT_SYMBOL(cfg80211_find_ie_match);
const u8 *cfg80211_find_vendor_ie(unsigned int oui, int oui_type, const u8 *cfg80211_find_vendor_ie(unsigned int oui, int oui_type,
const u8 *ies, int len) const u8 *ies, int len)
{ {
const u8 *ie; const u8 *ie;
 End of changes. 2 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)