Lines Matching refs:left
337 int left;
369 left = wpa_ie_len - sizeof (*hdr);
371 if (left >= WPA_SELECTOR_LEN) {
374 left -= WPA_SELECTOR_LEN;
375 } else if (left > 0) {
377 "wpa_parse_wpa_ie_wpa", left);
381 if (left >= 2) {
385 left -= 2;
386 if (count == 0 || left < count * WPA_SELECTOR_LEN) {
388 "count %u left %u",
389 "wpa_parse_wpa_ie_wpa", count, left);
395 left -= WPA_SELECTOR_LEN;
397 } else if (left == 1) {
403 if (left >= 2) {
407 left -= 2;
408 if (count == 0 || left < count * WPA_SELECTOR_LEN) {
410 "count %u left %u",
411 "wpa_parse_wpa_ie_wpa", count, left);
417 left -= WPA_SELECTOR_LEN;
419 } else if (left == 1) {
425 if (left >= 2) {
428 left -= 2;
431 if (left > 0) {
433 "wpa_parse_wpa_ie_wpa", left);
447 int left;
478 left = rsn_ie_len - sizeof (*hdr);
480 if (left >= RSN_SELECTOR_LEN) {
483 left -= RSN_SELECTOR_LEN;
484 } else if (left > 0) {
486 "wpa_parse_wpa_ie_rsn", left);
490 if (left >= 2) {
494 left -= 2;
495 if (count == 0 || left < count * RSN_SELECTOR_LEN) {
497 "count %u left %u",
498 "wpa_parse_wpa_ie_rsn", count, left);
504 left -= RSN_SELECTOR_LEN;
506 } else if (left == 1) {
512 if (left >= 2) {
516 left -= 2;
517 if (count == 0 || left < count * RSN_SELECTOR_LEN) {
519 "count %u left %u",
520 "wpa_parse_wpa_ie_rsn", count, left);
526 left -= RSN_SELECTOR_LEN;
528 } else if (left == 1) {
534 if (left >= 2) {
537 left -= 2;
540 if (left > 0) {
546 "wpa_parse_wpa_ie_rsn", left);