Lines Matching defs:sub
310 const struct element *non_inherit_elem, *parent, *sub;
341 sub = cfg80211_find_elem_match(id, subie, subie_len,
345 if (!sub &&
362 while (sub) {
363 if (!cfg80211_copy_elem_with_frags(sub,
369 sub = cfg80211_find_elem_match(id,
370 sub->data + sub->datalen,
372 (sub->data +
373 sub->datalen),
382 for_each_element(sub, subie, subie_len) {
383 if (sub->id == WLAN_EID_NON_TX_BSSID_CAP)
386 if (sub->id == WLAN_EID_FRAGMENT)
389 if (sub->id == WLAN_EID_EXTENSION) {
390 if (sub->datalen < 1)
394 ext_id = sub->data[0];
400 id = sub->id;
409 if (!cfg80211_copy_elem_with_frags(sub, subie, subie_len,
1682 /* Assign beacon IEs to all sub entries */
2195 * Check if the first element in the next sub element is a start
2246 const struct element *elem, *sub;
2277 for_each_element(sub, elem->data + 1, elem->datalen - 1) {
2280 if (sub->id != 0 || sub->datalen < 4) {
2285 if (sub->data[0] != WLAN_EID_NON_TX_BSSID_CAP ||
2286 sub->data[1] != 2) {
2298 sub,
2456 /* Find the sub-element area in the buffer */