Home | History | Annotate | Download | only in drivers

Lines Matching defs:iwe

441 	struct iw_event iwe_buf, *iwe = &iwe_buf;
452 iwe->cmd, iwe->len);
453 if (iwe->len <= IW_EV_LCP_LEN)
458 (iwe->cmd == IWEVMICHAELMICFAILURE ||
459 iwe->cmd == IWEVCUSTOM ||
460 iwe->cmd == IWEVASSOCREQIE ||
461 iwe->cmd == IWEVASSOCRESPIE ||
462 iwe->cmd == IWEVPMKIDCAND)) {
473 switch (iwe->cmd) {
477 MAC2STR((u8 *) iwe->u.ap_addr.sa_data));
479 (const u8 *) iwe->u.ap_addr.sa_data) ||
480 os_memcmp(iwe->u.ap_addr.sa_data,
506 if (custom + iwe->u.data.length > end) {
512 drv->ctx, custom, iwe->u.data.length);
515 if (custom + iwe->u.data.length > end) {
520 buf = os_malloc(iwe->u.data.length + 1);
523 os_memcpy(buf, custom, iwe->u.data.length);
524 buf[iwe->u.data.length] = '\0';
536 if (custom + iwe->u.data.length > end) {
542 drv, custom, iwe->u.data.length);
545 if (custom + iwe->u.data.length > end) {
551 drv, custom, iwe->u.data.length);
554 if (custom + iwe->u.data.length > end) {
560 drv, custom, iwe->u.data.length);
564 pos += iwe->len;
1126 static void wext_get_scan_mode(struct iw_event *iwe,
1129 if (iwe->u.mode == IW_MODE_ADHOC)
1131 else if (iwe->u.mode == IW_MODE_MASTER || iwe->u.mode == IW_MODE_INFRA)
1136 static void wext_get_scan_ssid(struct iw_event *iwe,
1140 int ssid_len = iwe->u.essid.length;
1143 if (iwe->u.essid.flags &&
1152 static void wext_get_scan_freq(struct iw_event *iwe,
1157 if (iwe->u.freq.e == 0) {
1170 if (iwe->u.freq.m >= 1 && iwe->u.freq.m <= 13) {
1171 res->res.freq = 2407 + 5 * iwe->u.freq.m;
1173 } else if (iwe->u.freq.m == 14) {
1179 if (iwe->u.freq.e > 6) {
1182 MAC2STR(res->res.bssid), iwe->u.freq.m,
1183 iwe->u.freq.e);
1187 for (i = 0; i < iwe->u.freq.e; i++)
1189 res->res.freq = iwe->u.freq.m / divi;
1194 struct iw_event *iwe,
1197 res->res.qual = iwe->u.qual.qual;
1198 res->res.noise = iwe->u.qual.noise;
1199 res->res.level = iwe->u.qual.level;
1200 if (iwe->u.qual.updated & IW_QUAL_QUAL_INVALID)
1202 if (iwe->u.qual.updated & IW_QUAL_LEVEL_INVALID)
1204 if (iwe->u.qual.updated & IW_QUAL_NOISE_INVALID)
1206 if (iwe->u.qual.updated & IW_QUAL_DBM)
1208 if ((iwe->u.qual.updated & IW_QUAL_DBM) ||
1209 ((iwe->u.qual.level != 0) &&
1210 (iwe->u.qual.level > drv->max_level))) {
1211 if (iwe->u.qual.level >= 64)
1213 if (iwe->u.qual.noise >= 64)
1219 static void wext_get_scan_encode(struct iw_event *iwe,
1222 if (!(iwe->u.data.flags & IW_ENCODE_DISABLED))
1227 static void wext_get_scan_rate(struct iw_event *iwe,
1236 clen = iwe->len;
1256 static void wext_get_scan_iwevgenie(struct iw_event *iwe,
1263 if (iwe->u.data.length == 0)
1267 gend = genie + iwe->u.data.length;
1282 static void wext_get_scan_custom(struct iw_event *iwe,
1289 clen = iwe->u.data.length;
1430 struct iw_event iwe_buf, *iwe = &iwe_buf;
1455 if (iwe->len <= IW_EV_LCP_LEN)
1459 if (wext_19_iw_point(drv, iwe->cmd)) {
1470 switch (iwe->cmd) {
1478 iwe->u.ap_addr.sa_data, ETH_ALEN);
1481 wext_get_scan_mode(iwe, &data);
1484 wext_get_scan_ssid(iwe, &data, custom, end);
1487 wext_get_scan_freq(iwe, &data);
1490 wext_get_scan_qual(drv, iwe, &data);
1493 wext_get_scan_encode(iwe, &data);
1496 wext_get_scan_rate(iwe, &data, pos, end);
1499 wext_get_scan_iwevgenie(iwe, &data, custom, end);
1502 wext_get_scan_custom(iwe, &data, custom, end);
1506 pos += iwe->len;