Home | History | Annotate | Download | only in drivers

Lines Matching defs:iwe

435 	struct iw_event iwe_buf, *iwe = &iwe_buf;
446 iwe->cmd, iwe->len);
447 if (iwe->len <= IW_EV_LCP_LEN)
452 (iwe->cmd == IWEVMICHAELMICFAILURE ||
453 iwe->cmd == IWEVCUSTOM ||
454 iwe->cmd == IWEVASSOCREQIE ||
455 iwe->cmd == IWEVASSOCRESPIE ||
456 iwe->cmd == IWEVPMKIDCAND)) {
467 switch (iwe->cmd) {
471 MAC2STR((u8 *) iwe->u.ap_addr.sa_data));
473 (const u8 *) iwe->u.ap_addr.sa_data) ||
474 os_memcmp(iwe->u.ap_addr.sa_data,
491 if (custom + iwe->u.data.length > end) {
497 drv->ctx, custom, iwe->u.data.length);
500 if (custom + iwe->u.data.length > end) {
505 buf = os_malloc(iwe->u.data.length + 1);
508 os_memcpy(buf, custom, iwe->u.data.length);
509 buf[iwe->u.data.length] = '\0';
521 if (custom + iwe->u.data.length > end) {
527 drv, custom, iwe->u.data.length);
530 if (custom + iwe->u.data.length > end) {
536 drv, custom, iwe->u.data.length);
539 if (custom + iwe->u.data.length > end) {
545 drv, custom, iwe->u.data.length);
549 pos += iwe->len;
1135 static void wext_get_scan_mode(struct iw_event *iwe,
1138 if (iwe->u.mode == IW_MODE_ADHOC)
1140 else if (iwe->u.mode == IW_MODE_MASTER || iwe->u.mode == IW_MODE_INFRA)
1145 static void wext_get_scan_ssid(struct iw_event *iwe,
1149 int ssid_len = iwe->u.essid.length;
1152 if (iwe->u.essid.flags &&
1161 static void wext_get_scan_freq(struct iw_event *iwe,
1166 if (iwe->u.freq.e == 0) {
1179 if (iwe->u.freq.m >= 1 && iwe->u.freq.m <= 13) {
1180 res->res.freq = 2407 + 5 * iwe->u.freq.m;
1182 } else if (iwe->u.freq.m == 14) {
1188 if (iwe->u.freq.e > 6) {
1191 MAC2STR(res->res.bssid), iwe->u.freq.m,
1192 iwe->u.freq.e);
1196 for (i = 0; i < iwe->u.freq.e; i++)
1198 res->res.freq = iwe->u.freq.m / divi;
1203 struct iw_event *iwe,
1206 res->res.qual = iwe->u.qual.qual;
1207 res->res.noise = iwe->u.qual.noise;
1208 res->res.level = iwe->u.qual.level;
1209 if (iwe->u.qual.updated & IW_QUAL_QUAL_INVALID)
1211 if (iwe->u.qual.updated & IW_QUAL_LEVEL_INVALID)
1213 if (iwe->u.qual.updated & IW_QUAL_NOISE_INVALID)
1215 if (iwe->u.qual.updated & IW_QUAL_DBM)
1217 if ((iwe->u.qual.updated & IW_QUAL_DBM) ||
1218 ((iwe->u.qual.level != 0) &&
1219 (iwe->u.qual.level > drv->max_level))) {
1220 if (iwe
1222 if (iwe->u.qual.noise >= 64)
1228 static void wext_get_scan_encode(struct iw_event *iwe,
1231 if (!(iwe->u.data.flags & IW_ENCODE_DISABLED))
1236 static void wext_get_scan_rate(struct iw_event *iwe,
1245 clen = iwe->len;
1265 static void wext_get_scan_iwevgenie(struct iw_event *iwe,
1272 if (iwe->u.data.length == 0)
1276 gend = genie + iwe->u.data.length;
1291 static void wext_get_scan_custom(struct iw_event *iwe,
1298 clen = iwe->u.data.length;
1439 struct iw_event iwe_buf, *iwe = &iwe_buf;
1464 if (iwe->len <= IW_EV_LCP_LEN)
1468 if (wext_19_iw_point(drv, iwe->cmd)) {
1479 switch (iwe->cmd) {
1487 iwe->u.ap_addr.sa_data, ETH_ALEN);
1490 wext_get_scan_mode(iwe, &data);
1493 wext_get_scan_ssid(iwe, &data, custom, end);
1496 wext_get_scan_freq(iwe, &data);
1499 wext_get_scan_qual(drv, iwe, &data);
1502 wext_get_scan_encode(iwe, &data);
1505 wext_get_scan_rate(iwe, &data, pos, end);
1508 wext_get_scan_iwevgenie(iwe, &data, custom, end);
1511 wext_get_scan_custom(iwe, &data, custom, end);
1515 pos += iwe->len;