Lines Matching refs:info_element
928 *info_element, int sub_type) in libipw_verify_qos_info()
930 if (info_element->elementID != QOS_ELEMENT_ID) in libipw_verify_qos_info()
932 if (info_element->qui_subtype != sub_type) in libipw_verify_qos_info()
934 if (memcmp(info_element->qui, qos_oui, QOS_OUI_LEN)) in libipw_verify_qos_info()
936 if (info_element->qui_type != QOS_OUI_TYPE) in libipw_verify_qos_info()
938 if (info_element->version != QOS_VERSION_1) in libipw_verify_qos_info()
949 struct libipw_info_element *info_element) in libipw_read_qos_param_element() argument
953 if (!element_param || !info_element || info_element->len != size - 2) in libipw_read_qos_param_element()
956 memcpy(element_param, info_element, size); in libipw_read_qos_param_element()
957 return libipw_verify_qos_info(&element_param->info_element, in libipw_read_qos_param_element()
966 struct libipw_info_element *info_element) in libipw_read_qos_info_element() argument
970 if (!element_info || !info_element || info_element->len != size - 2) in libipw_read_qos_info_element()
973 memcpy(element_info, info_element, size); in libipw_read_qos_info_element()
1018 *info_element, in libipw_parse_qos_info_param_IE()
1025 rc = libipw_read_qos_info_element(&qos_info_element, info_element); in libipw_parse_qos_info_param_IE()
1034 info_element); in libipw_parse_qos_info_param_IE()
1041 param_element.info_element.ac_info & 0x0F; in libipw_parse_qos_info_param_IE()
1090 *info_element, u16 length, in libipw_parse_info_param()
1099 while (length >= sizeof(*info_element)) { in libipw_parse_info_param()
1100 if (sizeof(*info_element) + info_element->len > length) { in libipw_parse_info_param()
1104 info_element->len + in libipw_parse_info_param()
1105 sizeof(*info_element), in libipw_parse_info_param()
1106 length, info_element->id); in libipw_parse_info_param()
1113 switch (info_element->id) { in libipw_parse_info_param()
1115 network->ssid_len = min(info_element->len, in libipw_parse_info_param()
1117 memcpy(network->ssid, info_element->data, in libipw_parse_info_param()
1132 network->rates_len = min(info_element->len, in libipw_parse_info_param()
1135 network->rates[i] = info_element->data[i]; in libipw_parse_info_param()
1142 (info_element->data[i])) { in libipw_parse_info_param()
1144 if (info_element->data[i] & in libipw_parse_info_param()
1159 network->rates_ex_len = min(info_element->len, in libipw_parse_info_param()
1162 network->rates_ex[i] = info_element->data[i]; in libipw_parse_info_param()
1169 (info_element->data[i])) { in libipw_parse_info_param()
1171 if (info_element->data[i] & in libipw_parse_info_param()
1184 info_element->data[0]); in libipw_parse_info_param()
1185 network->channel = info_element->data[0]; in libipw_parse_info_param()
1197 network->tim.tim_count = info_element->data[0]; in libipw_parse_info_param()
1198 network->tim.tim_period = info_element->data[1]; in libipw_parse_info_param()
1203 network->erp_value = info_element->data[0]; in libipw_parse_info_param()
1210 network->atim_window = info_element->data[0]; in libipw_parse_info_param()
1221 info_element->len); in libipw_parse_info_param()
1222 if (!libipw_parse_qos_info_param_IE(info_element, in libipw_parse_info_param()
1226 if (info_element->len >= 4 && in libipw_parse_info_param()
1227 info_element->data[0] == 0x00 && in libipw_parse_info_param()
1228 info_element->data[1] == 0x50 && in libipw_parse_info_param()
1229 info_element->data[2] == 0xf2 && in libipw_parse_info_param()
1230 info_element->data[3] == 0x01) { in libipw_parse_info_param()
1231 network->wpa_ie_len = min(info_element->len + 2, in libipw_parse_info_param()
1233 memcpy(network->wpa_ie, info_element, in libipw_parse_info_param()
1240 info_element->len); in libipw_parse_info_param()
1241 network->rsn_ie_len = min(info_element->len + 2, in libipw_parse_info_param()
1243 memcpy(network->rsn_ie, info_element, in libipw_parse_info_param()
1253 network->power_constraint = info_element->data[0]; in libipw_parse_info_param()
1258 network->power_constraint = info_element->data[0]; in libipw_parse_info_param()
1263 network->quiet.count = info_element->data[0]; in libipw_parse_info_param()
1264 network->quiet.period = info_element->data[1]; in libipw_parse_info_param()
1265 network->quiet.duration = info_element->data[2]; in libipw_parse_info_param()
1266 network->quiet.offset = info_element->data[3]; in libipw_parse_info_param()
1276 info_element->data[0]; in libipw_parse_info_param()
1277 network->tpc_report.link_margin = info_element->data[1]; in libipw_parse_info_param()
1284 get_info_element_string(info_element->id), in libipw_parse_info_param()
1285 info_element->id); in libipw_parse_info_param()
1289 length -= sizeof(*info_element) + info_element->len; in libipw_parse_info_param()
1290 info_element = in libipw_parse_info_param()
1291 (struct libipw_info_element *)&info_element-> in libipw_parse_info_param()
1292 data[info_element->len]; in libipw_parse_info_param()
1513 struct libipw_info_element *info_element = (void *)beacon->variable; in libipw_process_probe_response() local
1518 info_element->len, info_element->data, in libipw_process_probe_response()
1539 info_element->len, info_element->data, in libipw_process_probe_response()