• Home
  • Raw
  • Download

Lines Matching refs:iwe

423 	struct iw_event iwe_buf, *iwe = &iwe_buf;  in wpa_driver_wext_event_wireless()  local
434 iwe->cmd, iwe->len); in wpa_driver_wext_event_wireless()
435 if (iwe->len <= IW_EV_LCP_LEN) in wpa_driver_wext_event_wireless()
440 (iwe->cmd == IWEVMICHAELMICFAILURE || in wpa_driver_wext_event_wireless()
441 iwe->cmd == IWEVCUSTOM || in wpa_driver_wext_event_wireless()
442 iwe->cmd == IWEVASSOCREQIE || in wpa_driver_wext_event_wireless()
443 iwe->cmd == IWEVASSOCRESPIE || in wpa_driver_wext_event_wireless()
444 iwe->cmd == IWEVPMKIDCAND)) { in wpa_driver_wext_event_wireless()
455 switch (iwe->cmd) { in wpa_driver_wext_event_wireless()
459 MAC2STR((u8 *) iwe->u.ap_addr.sa_data)); in wpa_driver_wext_event_wireless()
461 (const u8 *) iwe->u.ap_addr.sa_data) || in wpa_driver_wext_event_wireless()
462 os_memcmp(iwe->u.ap_addr.sa_data, in wpa_driver_wext_event_wireless()
479 if (custom + iwe->u.data.length > end) { in wpa_driver_wext_event_wireless()
485 drv->ctx, custom, iwe->u.data.length); in wpa_driver_wext_event_wireless()
488 if (custom + iwe->u.data.length > end) { in wpa_driver_wext_event_wireless()
493 buf = dup_binstr(custom, iwe->u.data.length); in wpa_driver_wext_event_wireless()
507 if (custom + iwe->u.data.length > end) { in wpa_driver_wext_event_wireless()
513 drv, custom, iwe->u.data.length); in wpa_driver_wext_event_wireless()
516 if (custom + iwe->u.data.length > end) { in wpa_driver_wext_event_wireless()
522 drv, custom, iwe->u.data.length); in wpa_driver_wext_event_wireless()
525 if (custom + iwe->u.data.length > end) { in wpa_driver_wext_event_wireless()
531 drv, custom, iwe->u.data.length); in wpa_driver_wext_event_wireless()
535 pos += iwe->len; in wpa_driver_wext_event_wireless()
1115 static void wext_get_scan_mode(struct iw_event *iwe, in wext_get_scan_mode() argument
1118 if (iwe->u.mode == IW_MODE_ADHOC) in wext_get_scan_mode()
1120 else if (iwe->u.mode == IW_MODE_MASTER || iwe->u.mode == IW_MODE_INFRA) in wext_get_scan_mode()
1125 static void wext_get_scan_ssid(struct iw_event *iwe, in wext_get_scan_ssid() argument
1129 int ssid_len = iwe->u.essid.length; in wext_get_scan_ssid()
1132 if (iwe->u.essid.flags && in wext_get_scan_ssid()
1141 static void wext_get_scan_freq(struct iw_event *iwe, in wext_get_scan_freq() argument
1146 if (iwe->u.freq.e == 0) { in wext_get_scan_freq()
1159 if (iwe->u.freq.m >= 1 && iwe->u.freq.m <= 13) { in wext_get_scan_freq()
1160 res->res.freq = 2407 + 5 * iwe->u.freq.m; in wext_get_scan_freq()
1162 } else if (iwe->u.freq.m == 14) { in wext_get_scan_freq()
1168 if (iwe->u.freq.e > 6) { in wext_get_scan_freq()
1171 MAC2STR(res->res.bssid), iwe->u.freq.m, in wext_get_scan_freq()
1172 iwe->u.freq.e); in wext_get_scan_freq()
1176 for (i = 0; i < iwe->u.freq.e; i++) in wext_get_scan_freq()
1178 res->res.freq = iwe->u.freq.m / divi; in wext_get_scan_freq()
1183 struct iw_event *iwe, in wext_get_scan_qual() argument
1186 res->res.qual = iwe->u.qual.qual; in wext_get_scan_qual()
1187 res->res.noise = iwe->u.qual.noise; in wext_get_scan_qual()
1188 res->res.level = iwe->u.qual.level; in wext_get_scan_qual()
1189 if (iwe->u.qual.updated & IW_QUAL_QUAL_INVALID) in wext_get_scan_qual()
1191 if (iwe->u.qual.updated & IW_QUAL_LEVEL_INVALID) in wext_get_scan_qual()
1193 if (iwe->u.qual.updated & IW_QUAL_NOISE_INVALID) in wext_get_scan_qual()
1195 if (iwe->u.qual.updated & IW_QUAL_DBM) in wext_get_scan_qual()
1197 if ((iwe->u.qual.updated & IW_QUAL_DBM) || in wext_get_scan_qual()
1198 ((iwe->u.qual.level != 0) && in wext_get_scan_qual()
1199 (iwe->u.qual.level > drv->max_level))) { in wext_get_scan_qual()
1200 if (iwe->u.qual.level >= 64) in wext_get_scan_qual()
1202 if (iwe->u.qual.noise >= 64) in wext_get_scan_qual()
1208 static void wext_get_scan_encode(struct iw_event *iwe, in wext_get_scan_encode() argument
1211 if (!(iwe->u.data.flags & IW_ENCODE_DISABLED)) in wext_get_scan_encode()
1216 static void wext_get_scan_rate(struct iw_event *iwe, in wext_get_scan_rate() argument
1225 clen = iwe->len; in wext_get_scan_rate()
1245 static void wext_get_scan_iwevgenie(struct iw_event *iwe, in wext_get_scan_iwevgenie() argument
1252 if (iwe->u.data.length == 0) in wext_get_scan_iwevgenie()
1256 gend = genie + iwe->u.data.length; in wext_get_scan_iwevgenie()
1271 static void wext_get_scan_custom(struct iw_event *iwe, in wext_get_scan_custom() argument
1278 clen = iwe->u.data.length; in wext_get_scan_custom()
1419 struct iw_event iwe_buf, *iwe = &iwe_buf; in wpa_driver_wext_get_scan_results() local
1444 if (iwe->len <= IW_EV_LCP_LEN) in wpa_driver_wext_get_scan_results()
1448 if (wext_19_iw_point(drv, iwe->cmd)) { in wpa_driver_wext_get_scan_results()
1459 switch (iwe->cmd) { in wpa_driver_wext_get_scan_results()
1467 iwe->u.ap_addr.sa_data, ETH_ALEN); in wpa_driver_wext_get_scan_results()
1470 wext_get_scan_mode(iwe, &data); in wpa_driver_wext_get_scan_results()
1473 wext_get_scan_ssid(iwe, &data, custom, end); in wpa_driver_wext_get_scan_results()
1476 wext_get_scan_freq(iwe, &data); in wpa_driver_wext_get_scan_results()
1479 wext_get_scan_qual(drv, iwe, &data); in wpa_driver_wext_get_scan_results()
1482 wext_get_scan_encode(iwe, &data); in wpa_driver_wext_get_scan_results()
1485 wext_get_scan_rate(iwe, &data, pos, end); in wpa_driver_wext_get_scan_results()
1488 wext_get_scan_iwevgenie(iwe, &data, custom, end); in wpa_driver_wext_get_scan_results()
1491 wext_get_scan_custom(iwe, &data, custom, end); in wpa_driver_wext_get_scan_results()
1495 pos += iwe->len; in wpa_driver_wext_get_scan_results()