Home
last modified time | relevance | path

Searched refs:ie (Results 1 - 25 of 27) sorted by relevance

12

/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Dfrag.c34 /* defrag a fragmented dot11 ie/tlv. if space does not permit, return the needed
35 * ie length to contain all the fragments with status BCME_BUFTOOSHORT.
43 const bcm_tlv_t *ie; in bcm_tlv_dot11_defrag() local
47 /* find the ie; includes validation */ in bcm_tlv_dot11_defrag()
48 ie = bcm_parse_tlvs_dot11(buf, buf_len, id, id_ext); in bcm_tlv_dot11_defrag()
49 if (!ie) { in bcm_tlv_dot11_defrag()
57 tot_len = id_ext ? ie->len - 1 : ie->len; in bcm_tlv_dot11_defrag()
64 memcpy(out, &ie->data[id_ext ? 1 : 0], tot_len); in bcm_tlv_dot11_defrag()
72 if (ie in bcm_tlv_dot11_defrag()
[all...]
H A Dwl_ext_genl.c185 AGENL_ERROR(dev->name, "wrong vendor ie len %d\n", ie_len); in wl_ext_send_probersp()
234 bcm_tlv_t *ie; in wl_ext_probreq_event() local
255 ie = (bcm_tlv_t*)data; in wl_ext_probreq_event()
257 while (ie && totlen >= TLV_HDR_LEN) { in wl_ext_probreq_event()
259 int ie_len = ie->len + TLV_HDR_LEN; in wl_ext_probreq_event()
261 if (ie->id == event_id[i]) { in wl_ext_probreq_event()
262 ie_id = ie->id; in wl_ext_probreq_event()
266 if ((ie->id == ie_id) && (totlen >= ie_len) && (rem_len >= ie_len)) { in wl_ext_probreq_event()
267 memcpy(pbuf, ie, ie_len); in wl_ext_probreq_event()
272 ie in wl_ext_probreq_event()
[all...]
H A Dwl_cfgp2p.c66 static bool wl_cfgp2p_has_ie(const bcm_tlv_t *ie, const u8 **tlvs, u32 *tlvs_len,
144 const bcm_tlv_t *ie = (bcm_tlv_t *)data; in wl_cfgp2p_find_gas_subtype() local
149 ie = bcm_parse_tlvs(ie, len, DOT11_MNG_ADVERTISEMENT_ID); in wl_cfgp2p_find_gas_subtype()
151 if (ie == NULL) in wl_cfgp2p_find_gas_subtype()
154 frame = (const uint8 *)ie + ie->len + TLV_HDR_LEN + GAS_RESP_LEN; in wl_cfgp2p_find_gas_subtype()
825 * @ie : probe request ie (WPS IE + P2P IE)
826 * @ie_len : probe request ie lengt
830 wl_cfgp2p_enable_discovery(struct bcm_cfg80211 *cfg, struct net_device *dev, const u8 *ie, u32 ie_len) wl_cfgp2p_enable_discovery() argument
1216 wl_cfgp2p_has_ie(const bcm_tlv_t *ie, const u8 **tlvs, u32 *tlvs_len, const u8 *oui, u32 oui_len, u8 type) wl_cfgp2p_has_ie() argument
1237 const bcm_tlv_t *ie; wl_cfgp2p_find_wpaie() local
1250 const bcm_tlv_t *ie; wl_cfgp2p_find_wpsie() local
1263 bcm_tlv_t *ie; wl_cfgp2p_find_p2pie() local
1276 const bcm_tlv_t *ie; wl_cfgp2p_find_wfdie() local
1837 wifi_p2p_ie_t *ie = (wifi_p2p_ie_t*) buf; wl_cfg80211_change_ifaddr() local
2227 const wifi_p2p_ie_t *ie = NULL; wl_cfgp2p_retreive_p2pattrib() local
2280 bcm_tlv_t *ie; wl_cfgp2p_find_attrib_in_all_p2p_Ies() local
[all...]
H A Dwl_escan.c1260 bcm_tlv_t *ie; in wl_escan_meshid_ie() local
1262 if((ie = bcm_parse_tlvs(parse, (int)len, DOT11_MNG_MESH_ID)) != NULL) { in wl_escan_meshid_ie()
1263 mesh_id->SSID_len = ie->len; in wl_escan_meshid_ie()
1264 if (ie->len) { in wl_escan_meshid_ie()
1265 strncpy(mesh_id->SSID, ie->data, ie->len); in wl_escan_meshid_ie()
1285 bcm_tlv_t *ie; in wl_escan_mesh_info_ie() local
1293 if((ie = bcm_parse_tlvs(parse, (int)len, DOT11_MNG_VS_ID)) != NULL) { in wl_escan_mesh_info_ie()
1294 totl_len = ie->len; in wl_escan_mesh_info_ie()
1295 if (!memcmp(ie in wl_escan_mesh_info_ie()
[all...]
H A Dwl_iw.c1471 uint8 *ie = *wpaie; in ie_is_wpa_ie() local
1474 if ((ie[1] >= 6) && in ie_is_wpa_ie()
1475 !bcmp((const void *)&ie[2], (const void *)(WPA_OUI "\x01"), 4)) { in ie_is_wpa_ie()
1479 /* point to the next ie */ in ie_is_wpa_ie()
1480 ie += ie[1] + 2; in ie_is_wpa_ie()
1482 *tlvs_len -= (int)(ie - *tlvs); in ie_is_wpa_ie()
1484 *tlvs = ie; in ie_is_wpa_ie()
1493 uint8 *ie = *wpsie; in ie_is_wps_ie() local
1496 if ((ie[ in ie_is_wps_ie()
1566 bcm_tlv_t *ie; wl_iw_handle_scanresults_ies() local
[all...]
H A Dwl_cfg80211.c470 wl_cfgoce_has_ie(const u8 *ie, const u8 **tlvs, u32 *tlvs_len, const u8 *oui, u32 oui_len, u8 type);
473 #define wl_cfgoce_is_oce_ie(ie, tlvs, len) wl_cfgoce_has_ie(ie, tlvs, len, \
480 wl_cfgoce_has_ie(const u8 *ie, const u8 **tlvs, u32 *tlvs_len, const u8 *oui, u32 oui_len, u8 type) in wl_cfgoce_has_ie() argument
483 if (ie[TLV_LEN_OFF] >= oui_len + 1 && in wl_cfgoce_has_ie()
484 !bcmp(&ie[TLV_BODY_OFF], oui, oui_len) && in wl_cfgoce_has_ie()
485 type == ie[TLV_BODY_OFF + oui_len]) { in wl_cfgoce_has_ie()
1571 bcm_tlv_t *ie; in wl_cfg80211_is_oce_ap() local
1591 while ((ie = bcm_parse_tlvs(parse, len, DOT11_MNG_VS_ID))) { in wl_cfg80211_is_oce_ap()
1592 if (wl_cfgoce_is_oce_ie((const uint8*)ie, (u in wl_cfg80211_is_oce_ap()
9003 u8 *ie = NULL; wl_cfg80211_he_p2p_disable() local
15828 const u8 *ie; wl_update_bss_info() local
19655 struct wl_ie *ie = wl_to_ie(cfg); wl_rst_ie() local
19663 struct wl_ie *ie = wl_to_ie(cfg); wl_add_ie() local
19740 struct wl_ie *ie = wl_to_ie(cfg); wl_mrg_ie() local
19755 struct wl_ie *ie = wl_to_ie(cfg); wl_cp_ie() local
19769 struct wl_ie *ie = wl_to_ie(cfg); wl_get_ielen() local
21092 const bcm_tlv_t *ie; wl_cfg80211_parse_vndr_ies() local
[all...]
H A Dwl_cfg80211.h159 #define CFG80211_DISCONNECTED(dev, reason, ie, len, loc_gen, gfp) \
160 cfg80211_disconnected(dev, reason, ie, len, loc_gen, gfp);
162 #define CFG80211_DISCONNECTED(dev, reason, ie, len, loc_gen, gfp) \
164 cfg80211_disconnected(dev, reason, ie, len, gfp);
847 /* assoc ie length */
1184 struct wl_ie *ie; member
1186 struct wl_ie ie; member
2010 #define wl_to_ie(w) (w->ie)
2013 #define wl_to_ie(w) (&w->ie)
2041 ((wl_cfgp2p_find_wpsie(_sme->ie, _sm
[all...]
H A Dbcmutils.c1534 const bcm_tlv_t *ie; in bcm_find_vendor_ie() local
1537 ie = (const bcm_tlv_t*)tlvs; in bcm_find_vendor_ie()
1540 if (ie == NULL || !bcm_valid_tlv(ie, tlvs_len)) { in bcm_find_vendor_ie()
1546 ie_len = ie->len; in bcm_find_vendor_ie()
1547 if ((ie->id == DOT11_MNG_VS_ID) && in bcm_find_vendor_ie()
1549 !bcmp(ie->data, voui, DOT11_OUI_LEN)) in bcm_find_vendor_ie()
1553 !bcmp(&ie->data[DOT11_OUI_LEN], type, type_len)) { in bcm_find_vendor_ie()
1555 return (bcm_tlv_t *)(ie); /* a match */ in bcm_find_vendor_ie()
1559 } while ((ie in bcm_find_vendor_ie()
[all...]
H A Dwl_cfgscan.c115 bcm_tlv_t *ie; in wl_cfg80211_find_interworking_ie() local
122 if ((ie = bcm_parse_tlvs(parse, len, DOT11_MNG_INTERWORKING_ID))) { in wl_cfg80211_find_interworking_ie()
123 return ie; in wl_cfg80211_find_interworking_ie()
141 return wldev_iovar_setbuf_bsscfg(ndev, "ie", &ie_setbuf, sizeof(ie_setbuf), in wl_cfg80211_clear_iw_ie()
178 if (wldev_iovar_getbuf_bsscfg(ndev, "ie", (void *)&ie_getbufp, in wl_cfg80211_add_iw_ie()
213 if ((err = wldev_iovar_setbuf_bsscfg(ndev, "ie", ie_setbuf, buf_len, in wl_cfg80211_add_iw_ie()
807 const u8 *ie, u32 ie_len) in wl_find_listen_channel()
813 pos = (const u8 *)ie; in wl_find_listen_channel()
828 CFGP2P_DBG((" found p2p ie ! lenth %d \n", in wl_find_listen_channel()
1780 request->ie, reques in __wl_cfg80211_scan()
806 wl_find_listen_channel(struct bcm_cfg80211 *cfg, const u8 *ie, u32 ie_len) wl_find_listen_channel() argument
[all...]
H A Dwl_cfgp2p.h293 wl_cfgp2p_enable_discovery(struct bcm_cfg80211 *cfg, struct net_device *dev, const u8 *ie,
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_cfg80211_apt.c95 new_sta_info.ie = (hi_u8 *)oal_memalloc(sinfo->assoc_req_ies_len); in cfg80211_new_sta()
96 if (new_sta_info.ie == HI_NULL) { in cfg80211_new_sta()
97 oam_error_log0(0, OAM_SF_ANY, "{cfg80211_new_sta::pst_new_sta_info->ie malloc error!}"); in cfg80211_new_sta()
100 if (memcpy_s(new_sta_info.ie, sinfo->assoc_req_ies_len, sinfo->assoc_req_ies, sinfo->assoc_req_ies_len) != EOK) { in cfg80211_new_sta()
102 oal_free(new_sta_info.ie); in cfg80211_new_sta()
110 oal_free(new_sta_info.ie); in cfg80211_new_sta()
469 hi_u32 cfg80211_disconnected(const oal_net_device_stru *netdev, hi_u16 us_reason, const hi_u8 *ie, hi_u32 ie_len) in cfg80211_disconnected() argument
482 if ((ie != HI_NULL) && (ie_len != 0)) { in cfg80211_disconnected()
483 disconnect.ie = oal_memalloc(ie_len); in cfg80211_disconnected()
485 if (disconnect.ie in cfg80211_disconnected()
[all...]
H A Dwal_scan.c63 if (scan_mgmt->request->ie != HI_NULL) { in wal_free_scan_mgmt_resource()
64 OsalMemFree(scan_mgmt->request->ie); in wal_free_scan_mgmt_resource()
65 scan_mgmt->request->ie = HI_NULL; in wal_free_scan_mgmt_resource()
537 /* 解析内核下发的ie, Mesh ID携带在IE段中 */ in wal_start_scan_req()
538 if ((request->ie_len > 0) && (request->ie != HI_NULL)) { in wal_start_scan_req()
542 oam_error_log0(0, OAM_SF_SCAN, "{wal_start_scan_req::memory is too low, fail to alloc for scan ie!}"); in wal_start_scan_req()
547 if (memcpy_s((hi_void *)(scan_param->puc_ie), request->ie_len, request->ie, request->ie_len) != EOK) { in wal_start_scan_req()
548 oam_error_log0(0, OAM_SF_SCAN, "{wal_start_scan_req::fail to copy scan ie, return!}"); in wal_start_scan_req()
553 scan_param->puc_ie = request->ie; in wal_start_scan_req()
H A Dwal_mac80211.c97 request->ie = (uint8_t *)OsalMemCalloc(params->extraIEsLen); in WifiScanSetUserIe()
98 if (request->ie == NULL) { in WifiScanSetUserIe()
102 (void)memcpy_s(request->ie, params->extraIEsLen, params->extraIEs, params->extraIEsLen); in WifiScanSetUserIe()
109 if (request->ie != NULL) { in WifiScanSetUserIe()
110 OsalMemFree(request->ie); in WifiScanSetUserIe()
111 request->ie = NULL; in WifiScanSetUserIe()
198 oam_error_log(0, OAM_SF_ANY, "%s:set user ie failed!", __func__); in WifiScanSetRequest()
207 if ((*request)->ie != NULL) { in WifiScanFree()
208 OsalMemFree((*request)->ie); in WifiScanFree()
209 (*request)->ie in WifiScanFree()
[all...]
H A Dhi_wifi_driver_wpa_if.h317 hi_u8 *ie; member
513 hi_u8 *ie; member
555 hi_u8 *ie; member
604 hi_u8 *ie; member
H A Dwal_cfg80211.c651 功能描述 : 查找内核下发的beacon_info中的wmm ie中wmm uapsd是否使能
753 /* wmm ie未找到,则说明wmm 关 */ in wal_parse_wmm_ie()
755 } else { /* 找到wmm ie,顺便判断下uapsd是否使能 */ in wal_parse_wmm_ie()
2546 oam_warning_log0(0, OAM_SF_WPA, "{wal_parse_wpa_wpa2_ie::Failed to parse RSN ie!}\r\n"); in wal_parse_wpa_wpa2_ie()
2557 oam_warning_log0(0, OAM_SF_WPA, "{wal_parse_wpa_wpa2_ie::Failed to parse WPA ie!}\r\n"); in wal_parse_wpa_wpa2_ie()
2601 oam_warning_log0(0, OAM_SF_ANY, "{wal_parse_mesh_conf_ie::mesh vap can't find mesh conf ie!}"); in wal_parse_mesh_conf_ie()
2763 /* 使用ht cap ie中数据域的2个字节 */ in wal_parse_ht_vht_ie()
2765 oam_warning_log1(mac_vap->vap_id, OAM_SF_ANY, "{wal_parse_ht_vht_ie::invalid htcap ie len %d}\n", puc_ht_ie[1]); in wal_parse_ht_vht_ie()
2785 /* 使用vht cap ie中数据域的4个字节 */ in wal_parse_ht_vht_ie()
2787 oam_warning_log1(mac_vap->vap_id, OAM_SF_ANY, "{wal_parse_ht_vht_ie::invalid ht cap ie le in wal_parse_ht_vht_ie()
[all...]
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/
H A Dhdf_bdh_event.c118 int32_t HdfDisconnectedEventCallback(struct net_device *ndev, uint16_t reason, uint8_t *ie, uint32_t len) in HdfDisconnectedEventCallback() argument
126 ret = HdfWifiEventDisconnected(netDev, reason, ie, len); in HdfDisconnectedEventCallback()
H A Dhdf_bdh_event.h42 extern int32_t HdfDisconnectedEventCallback(struct net_device *ndev, uint16_t reason, uint8_t *ie, uint32_t len);
H A Dhdf_bdh_mac80211.c706 request->ie = (uint8_t *)OsalMemCalloc(params->extraIEsLen); in WifiScanSetUserIe()
707 if (request->ie == NULL) { in WifiScanSetUserIe()
708 HDF_LOGE("%s: calloc request->ie null", __func__); in WifiScanSetUserIe()
711 (void)memcpy_s((void *)request->ie, params->extraIEsLen, params->extraIEs, params->extraIEsLen); in WifiScanSetUserIe()
801 HDF_LOGE("%s: set user ie failed!", __func__); in WifiScanSetRequest()
813 if ((*request)->ie != NULL) { in WifiScanFree()
814 OsalMemFree((void *)(*request)->ie); in WifiScanFree()
815 (*request)->ie = NULL; in WifiScanFree()
952 cfg80211_params->ie = param->ie; in FillCfg80211ConnectParams()
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/
H A Dmac_frame.c79 mac_ieee80211_vendor_ie_stru *ie = HI_NULL; in mac_find_vendor_ie() local
94 ie = (mac_ieee80211_vendor_ie_stru *)puc_pos; in mac_find_vendor_ie()
95 if (ie->len >= (sizeof(mac_ieee80211_vendor_ie_stru) - MAC_IE_HDR_LEN)) { in mac_find_vendor_ie()
96 ie_oui = (ie->auc_oui[0] << 16) | /* auc_oui[0]存于最高16bit */ in mac_find_vendor_ie()
97 (ie->auc_oui[1] << 8) | ie->auc_oui[2]; /* auc_oui[1]存于次高8bit,auc_oui[2]存于最低8bit */ in mac_find_vendor_ie()
98 if ((ie_oui == oui) && (ie->oui_type == oui_type)) { in mac_find_vendor_ie()
102 puc_pos += 2 + ie->len; /* 每次循环偏移(2 + ie->len)byte */ in mac_find_vendor_ie()
171 功能描述 : 设置ssid ie
439 mac_ieee80211_vendor_ie_stru *ie = HI_NULL; mac_find_mesh_vendor_ie() local
[all...]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_mgmt_ap.c137 /* 上报内核的关联sta发送的关联请求帧ie信息 */ in hmac_handle_connect_rsp_ap()
649 static hi_u32 hmac_check_assoc_req_security_cap_common(const mac_vap_stru *mac_vap, const hi_u8 *ie, hi_u8 is_80211i, in hmac_check_assoc_req_security_cap_common() argument
661 if (mib_info->wlan_mib_rsna_cfg.dot11_rsna_config_version != hi_makeu16(ie[offset], ie[offset + 1])) { in hmac_check_assoc_req_security_cap_common()
664 hi_makeu16(ie[offset], ie[offset + 1])); in hmac_check_assoc_req_security_cap_common()
670 if (memcmp(auc_oui, ie + index, MAC_OUI_LEN) != 0) { in hmac_check_assoc_req_security_cap_common()
674 hi_u8 grp_policy = ie[index++]; /* 获取组播密钥 */ in hmac_check_assoc_req_security_cap_common()
677 hi_u8 pcip_policy = hmac_get_pcip_policy_auth(ie + index, &len); in hmac_check_assoc_req_security_cap_common()
681 hi_u8 auth_policy = hmac_get_auth_policy_auth(ie in hmac_check_assoc_req_security_cap_common()
1031 const hi_u8 *ie = HI_NULL; hmac_sta_several_param_proc() local
[all...]
H A Dhmac_scan.c424 oam_warning_log0(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_rsn:invalid RSN paerwise OUI,ignore this ie}"); in hmac_scan_update_bss_list_rsn()
430 oam_warning_log1(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa:ignore this ie,pcip_num:%d}", us_pcip_num); in hmac_scan_update_bss_list_rsn()
444 oam_warning_log0(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_rsn::invalid RSN auth OUI,ignore this ie.}"); in hmac_scan_update_bss_list_rsn()
451 oam_warning_log1(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa:ignore this ie,auth_num:%d}", us_auth_num); in hmac_scan_update_bss_list_rsn()
521 oam_warning_log0(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa::invalid WPA pairwise OUI,ignore ie.}"); in hmac_scan_update_bss_list_wpa()
530 oam_warning_log1(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa::ignore ie,pcip_num:%d.}", us_pcip_num); in hmac_scan_update_bss_list_wpa()
543 oam_warning_log0(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa::invalid WPA auth OUI,ignore this ie.}"); in hmac_scan_update_bss_list_wpa()
548 oam_warning_log1(0, OAM_SF_SCAN, "{hmac_scan_update_bss_list_wpa::ignore ie,us_auth_num:%d.}", us_auth_num); in hmac_scan_update_bss_list_wpa()
630 if (puc_ie[8] & BIT7) { /* wmm ie的第8个字节是QoS info字节 */ in hmac_scan_update_bss_list_wmm()
693 if ((puc_ie != HI_NULL) && (puc_ie[1] >= 2)) { /* 增加ie长度异常检查 in hmac_scan_update_bss_list_11n()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_wifi_api.h275 * max usr ie length.CNcomment:用户IE字段最大长度CNend
407 * Frame type that usr ies will insert into.CNcomment: 待插入ie字段的帧类型.CNend
419 * Usr ie type to be inserted.CNcomment: 待插入ie字段类型.CNend
1976 * ie [IN] Type #const unsigned char *, user IE value.CNcomment:用户IE字段内容。CNend
1985 hi_wifi_usr_ie_type usr_ie_type, const unsigned char *ie, unsigned short ie_len);
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/wifi/include/
H A Dhi_wifi_driver_wpa_if.h580 hi_u8 *ie; member
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_net.h498 HWIFI_IOCTL_CMD_GET_STA_ASSOC_REQ_IE = 0x8EE0, /* get sta assocate request ie */
882 const hi_u8* ie; member
1349 hi_u8* ie; member
1385 hi_u8* ie; member
1447 /* 该结构为事件内存池大小,保存从hostapd/wpa_supplicant下发的ie 信息 */
1489 hi_u32 buf_size; /* 用户空间ie 缓冲大小 */
1490 hi_u8* puc_buf; /* 用户空间ie 缓冲地址 */
1491 } assoc_req_ie; /* AP 模式,用于获取STA 关联请求ie 信息 */
1515 oal_app_ie_stru app_ie; /* beacon ie,index 0; proberesp ie inde
[all...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmevent.h1047 uint8 ie[]; /* Variable length buffer for the invalid IE copy */ member

Completed in 61 milliseconds

12