Lines Matching refs:ie

53 wl_cfgp2p_has_ie(u8 *ie, u8 **tlvs, u32 *tlvs_len, const u8 *oui, u32 oui_len, u8 type);
633 * @ie : probe request ie (WPS IE + P2P IE)
634 * @ie_len : probe request ie length
639 const u8 *ie, u32 ie_len)
671 VNDR_IE_PRBREQ_FLAG, ie, ie_len);
674 CFGP2P_ERR(("set probreq ie occurs error %d\n", ret));
895 #define wl_cfgp2p_is_wpa_ie(ie, tlvs, len) wl_cfgp2p_has_ie(ie, tlvs, len, \
898 #define wl_cfgp2p_is_wps_ie(ie, tlvs, len) wl_cfgp2p_has_ie(ie, tlvs, len, \
901 #define wl_cfgp2p_is_p2p_ie(ie, tlvs, len) wl_cfgp2p_has_ie(ie, tlvs, len, \
905 #define wl_cfgp2p_is_wfd_ie(ie, tlvs, len) wl_cfgp2p_has_ie(ie, tlvs, len, \
914 bcm_tlv_t *ie;
923 ie = (bcm_tlv_t *) parse;
924 if (!bcm_valid_tlv(ie, remained_len))
925 ie = NULL;
926 while (ie) {
929 if (ie->id == DOT11_MNG_VS_ID) {
930 vndrie = (vndr_ie_t *) ie;
933 CFGP2P_ERR(("%s: invalid vndr ie. length is too small %d\n",
937 /* if wpa or wme ie, do not add ie */
947 /* save vndr ie information */
959 ie = bcm_next_tlv(ie, &remained_len);
965 /* Delete and Set a management vndr ie to firmware
972 * @ie : VNDR IE (such as P2P IE , WPS IE)
1108 /* make a command to delete old ie */
1137 /* make a command to add new ie */
1161 "cur mgmt_ie_len %d, new ie len = %d\n",
1181 CFGP2P_ERR(("vndr ie set error : %d\n", ret));
1223 wl_cfgp2p_has_ie(u8 *ie, u8 **tlvs, u32 *tlvs_len, const u8 *oui, u32 oui_len, u8 type)
1226 if (ie[TLV_LEN_OFF] >= oui_len + 1 &&
1227 !bcmp(&ie[TLV_BODY_OFF], oui, oui_len) &&
1228 type == ie[TLV_BODY_OFF + oui_len]) {
1234 /* point to the next ie */
1235 ie += ie[TLV_LEN_OFF] + TLV_HDR_LEN;
1237 *tlvs_len -= (int)(ie - *tlvs);
1239 *tlvs = ie;
1247 bcm_tlv_t *ie;
1249 while ((ie = bcm_parse_tlvs(parse, (u32)len, DOT11_MNG_VS_ID))) {
1250 if (wl_cfgp2p_is_wpa_ie((u8*)ie, &parse, &len)) {
1251 return (wpa_ie_fixed_t *)ie;
1260 bcm_tlv_t *ie;
1262 while ((ie = bcm_parse_tlvs(parse, (u32)len, DOT11_MNG_VS_ID))) {
1263 if (wl_cfgp2p_is_wps_ie((u8*)ie, &parse, &len)) {
1264 return (wpa_ie_fixed_t *)ie;
1273 bcm_tlv_t *ie;
1275 while ((ie = bcm_parse_tlvs(parse, (int)len, DOT11_MNG_VS_ID))) {
1276 if (wl_cfgp2p_is_p2p_ie((uint8*)ie, &parse, &len)) {
1277 return (wifi_p2p_ie_t *)ie;
1286 bcm_tlv_t *ie;
1288 while ((ie = bcm_parse_tlvs(parse, (int)len, DOT11_MNG_VS_ID))) {
1289 if (wl_cfgp2p_is_wfd_ie((uint8*)ie, &parse, &len)) {
1290 return (wifi_wfd_ie_t *)ie;
1700 wifi_p2p_ie_t *ie = (wifi_p2p_ie_t*) buf;
1701 u16 len = ie->len;
1710 subel = ie->subelts;
1997 wifi_p2p_ie_t *ie = NULL;
2008 ie = (wifi_p2p_ie_t*) buf;
2009 len = ie->len;
2014 subel = ie->subelts;