Home | History | Annotate | Download | only in drivers

Lines Matching defs:iwe

416 	struct iw_event iwe_buf, *iwe = &iwe_buf;
427 iwe->cmd, iwe->len);
428 if (iwe->len <= IW_EV_LCP_LEN || iwe->len > end - pos)
433 (iwe->cmd == IWEVMICHAELMICFAILURE ||
434 iwe->cmd == IWEVCUSTOM ||
435 iwe->cmd == IWEVASSOCREQIE ||
436 iwe->cmd == IWEVASSOCRESPIE ||
437 iwe->cmd == IWEVPMKIDCAND)) {
448 switch (iwe->cmd) {
452 MAC2STR((u8 *) iwe->u.ap_addr.sa_data));
454 (const u8 *) iwe->u.ap_addr.sa_data) ||
455 os_memcmp(iwe->u.ap_addr.sa_data,
472 if (iwe->u.data.length > end - custom) {
478 drv->ctx, custom, iwe->u.data.length);
481 if (iwe->u.data.length > end - custom) {
486 buf = dup_binstr(custom, iwe->u.data.length);
500 if (iwe->u.data.length > end - custom) {
506 drv, custom, iwe->u.data.length);
509 if (iwe->u.data.length > end - custom) {
515 drv, custom, iwe->u.data.length);
518 if (iwe->u.data.length > end - custom) {
524 drv, custom, iwe->u.data.length);
528 pos += iwe->len;
1198 static void wext_get_scan_mode(struct iw_event *iwe,
1201 if (iwe->u.mode == IW_MODE_ADHOC)
1203 else if (iwe->u.mode == IW_MODE_MASTER || iwe->u.mode == IW_MODE_INFRA)
1208 static void wext_get_scan_ssid(struct iw_event *iwe,
1212 int ssid_len = iwe->u.essid.length;
1215 if (iwe->u.essid.flags &&
1224 static void wext_get_scan_freq(struct iw_event *iwe,
1229 if (iwe->u.freq.e == 0) {
1242 if (iwe->u.freq.m >= 1 && iwe->u.freq.m <= 13) {
1243 res->res.freq = 2407 + 5 * iwe->u.freq.m;
1245 } else if (iwe->u.freq.m == 14) {
1251 if (iwe->u.freq.e > 6) {
1254 MAC2STR(res->res.bssid), iwe->u.freq.m,
1255 iwe->u.freq.e);
1259 for (i = 0; i < iwe->u.freq.e; i++)
1261 res->res.freq = iwe->u.freq.m / divi;
1266 struct iw_event *iwe,
1269 res->res.qual = iwe->u.qual.qual;
1270 res->res.noise = iwe->u.qual.noise;
1271 res->res.level = iwe->u.qual.level;
1272 if (iwe->u.qual.updated & IW_QUAL_QUAL_INVALID)
1274 if (iwe->u.qual.updated & IW_QUAL_LEVEL_INVALID)
1276 if (iwe->u.qual.updated & IW_QUAL_NOISE_INVALID)
1278 if (iwe->u.qual.updated & IW_QUAL_DBM)
1280 if ((iwe->u.qual.updated & IW_QUAL_DBM) ||
1281 ((iwe->u.qual.level != 0) &&
1282 (iwe->u.qual.level > drv->max_level))) {
1283 if (iwe->u.qual.level >= 64)
1285 if (iwe->u.qual.noise >= 64)
1291 static void wext_get_scan_encode(struct iw_event *iwe,
1294 if (!(iwe->u.data.flags & IW_ENCODE_DISABLED))
1299 static void wext_get_scan_rate(struct iw_event *iwe,
1308 clen = iwe->len;
1328 static void wext_get_scan_iwevgenie(struct iw_event *iwe,
1335 if (iwe->u.data.length == 0)
1339 gend = genie + iwe->u.data.length;
1354 static void wext_get_scan_custom(struct iw_event *iwe,
1361 clen = iwe->u.data.length;
1502 struct iw_event iwe_buf, *iwe = &iwe_buf;
1527 if (iwe->len <= IW_EV_LCP_LEN || iwe->len > end - pos)
1531 if (wext_19_iw_point(drv, iwe->cmd)) {
1542 switch (iwe->cmd) {
1550 iwe->u.ap_addr.sa_data, ETH_ALEN);
1553 wext_get_scan_mode(iwe, &data);
1556 wext_get_scan_ssid(iwe, &data, custom, end);
1559 wext_get_scan_freq(iwe, &data);
1562 wext_get_scan_qual(drv, iwe, &data);
1565 wext_get_scan_encode(iwe, &data);
1568 wext_get_scan_rate(iwe, &data, pos, end);
1571 wext_get_scan_iwevgenie(iwe, &data, custom, end);
1574 wext_get_scan_custom(iwe, &data, custom, end);
1578 pos += iwe->len;