Lines Matching full:ie
271 add_ie_rates(u8 *tlv, const u8 *ie, int *nrates) in add_ie_rates() argument
273 int hw, ap, ap_max = ie[1]; in add_ie_rates()
280 /* Advance past IE header */ in add_ie_rates()
281 ie += 2; in add_ie_rates()
283 lbs_deb_hex(LBS_DEB_ASSOC, "AP IE Rates", (u8 *) ie, ap_max); in add_ie_rates()
288 if (hw_rate == (ie[ap] & 0x7f)) { in add_ie_rates()
289 *tlv++ = ie[ap]; in add_ie_rates()
326 lbs_deb_assoc("assoc: bss had no basic rate IE\n"); in lbs_add_common_rates_tlv()
417 static int lbs_add_wpa_tlv(u8 *tlv, const u8 *ie, u8 ie_len) in lbs_add_wpa_tlv() argument
422 /* Find the first RSN or WPA IE to use */ in lbs_add_wpa_tlv()
423 wpaie = cfg80211_find_elem(WLAN_EID_RSN, ie, ie_len); in lbs_add_wpa_tlv()
427 ie, ie_len); in lbs_add_wpa_tlv()
432 * Convert the found IE to a TLV. IEs use u8 for the header, in lbs_add_wpa_tlv()
455 static int lbs_add_wps_enrollee_tlv(u8 *tlv, const u8 *ie, size_t ie_len) in lbs_add_wps_enrollee_tlv() argument
460 /* Look for a WPS IE and add it to the probe request */ in lbs_add_wps_enrollee_tlv()
463 ie, ie_len); in lbs_add_wps_enrollee_tlv()
467 /* Convert the WPS IE to a TLV. The IE looks like this: in lbs_add_wps_enrollee_tlv()
621 const u8 *ie; in lbs_ret_scan() local
649 ie = pos; in lbs_ret_scan()
661 lbs_deb_scan("scan response: invalid IE fmt\n"); in lbs_ret_scan()
692 capa, intvl, ie, ielen, in lbs_ret_scan()
698 lbs_deb_scan("scan response: missing BSS channel IE\n"); in lbs_ret_scan()
711 * TLV, a rates TLV, and an optional WPS IE. Determine the maximum size of them:
768 if (priv->scan_req->ie && priv->scan_req->ie_len) in lbs_scan_worker()
769 tlv += lbs_add_wps_enrollee_tlv(tlv, priv->scan_req->ie, in lbs_scan_worker()
1169 tmp = pos + 4; /* skip Marvell IE header */ in lbs_associate()
1178 if (sme->ie && sme->ie_len) in lbs_associate()
1179 pos += lbs_add_wpa_tlv(pos, sme->ie, sme->ie_len); in lbs_associate()
1253 sme->ie, sme->ie_len, in lbs_associate()
1704 * For cfg80211_inform_bss, we'll need a fake IE, as we can't get in lbs_join_post()
1705 * the real IE from the firmware. So we fabricate a fake IE based on in lbs_join_post()
1708 /* Fake SSID IE */ in lbs_join_post()
1713 /* Fake supported basic rates IE */ in lbs_join_post()
1720 /* Fake DS channel IE */ in lbs_join_post()
1724 /* Fake IBSS params IE */ in lbs_join_post()
1729 /* Fake extended rates IE, TODO: don't add this for 802.11b only, in lbs_join_post()
1741 lbs_deb_hex(LBS_DEB_CFG80211, "IE", fake_ie, fake - fake_ie); in lbs_join_post()
1798 * IE DS 03 in lbs_ibss_join_existing()
1799 * IE DS len 01 in lbs_ibss_join_existing()
1800 * IE DS channel 01 in lbs_ibss_join_existing()
1802 * IE IBSS 06 in lbs_ibss_join_existing()
1803 * IE IBSS len 02 in lbs_ibss_join_existing()
1804 * IE IBSS atim 00 00 in lbs_ibss_join_existing()
1910 * IE IBSS 06 in lbs_ibss_start_new()
1911 * IE IBSS len 02 in lbs_ibss_start_new()
1912 * IE IBSS atim 00 00 in lbs_ibss_start_new()
1914 * IE DS 03 in lbs_ibss_start_new()
1915 * IE DS len 01 in lbs_ibss_start_new()
1916 * IE DS channel 01 in lbs_ibss_start_new()