Home
last modified time | relevance | path

Searched refs:netdev (Results 1 – 25 of 118) sorted by relevance

12345

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
Dwal_hipriv.h83 typedef hi_u32 (*wal_hipriv_cmd_func)(oal_net_device_stru *netdev, hi_char *pc_param);
143 hi_u32 wal_hipriv_set_rate(oal_net_device_stru *netdev, hi_char *pc_param);
144 hi_u32 wal_hipriv_set_mcs(oal_net_device_stru *netdev, hi_char *pc_param);
150 hi_u32 wal_hipriv_del_vap(oal_net_device_stru *netdev);
152 hi_u32 wal_hipriv_vap_info(oal_net_device_stru *netdev, hi_char *pc_param);
160 hi_u32 wal_hipriv_get_bw(oal_net_device_stru *netdev, hal_channel_assemble_enum_uint8 *pen_bw_index…
161 hi_u32 wal_hipriv_set_bw(oal_net_device_stru *netdev, hi_char *pc_param);
163 hi_u32 wal_hipriv_reg_write(oal_net_device_stru *netdev, hi_char *pc_param);
165 hi_u32 wal_hipriv_getcountry(oal_net_device_stru *netdev, hi_char *pc_param);
166 hi_u32 wal_hipriv_set_vap_state(oal_net_device_stru *netdev, hi_char *pc_param);
[all …]
Dwal_ioctl.h105 hi_u32 wal_alloc_cfg_event(oal_net_device_stru *netdev, frw_event_mem_stru **event_mem, hi_void *re…
107 hi_u32 wal_send_cfg_event(oal_net_device_stru *netdev, wal_msg_type_enum_uint8 msg_type, hi_u16 us_…
110 hi_u32 wal_start_vap(oal_net_device_stru *netdev);
111 hi_u32 wal_stop_vap(oal_net_device_stru *netdev);
112 hi_u32 wal_init_wlan_vap(oal_net_device_stru *netdev);
113 hi_u32 wal_deinit_wlan_vap(oal_net_device_stru *netdev);
114 hi_u32 wal_setup_vap(oal_net_device_stru *netdev);
115 hi_u32 wal_host_dev_init(const oal_net_device_stru *netdev);
119 hi_u32 wal_cfg_vap_h2d_event(oal_net_device_stru *netdev);
121 hi_u32 wal_host_dev_exit(const oal_net_device_stru *netdev);
[all …]
Dwal_cfg80211_apt.h69 hi_u32 cfg80211_new_sta(const oal_net_device_stru *netdev, const hi_u8 *mac_addr, hi_u8 addr_len,
71 hi_u32 cfg80211_del_sta(oal_net_device_stru *netdev, const hi_u8 *mac_addr, hi_u8 addr_len);
73 hi_void cfg80211_inform_bss_frame(const oal_net_device_stru *netdev, oal_wiphy_stru *wiphy,
75 hi_void cfg80211_connect_result(const oal_net_device_stru *netdev, const oal_connet_result_stru *co…
76 hi_u32 cfg80211_disconnected(const oal_net_device_stru *netdev, hi_u16 us_reason, const hi_u8 *puc_…
77 hi_u32 cfg80211_timeout_disconnected(const oal_net_device_stru *netdev);
78 hi_void cfg80211_scan_done(const oal_net_device_stru *netdev, hisi_scan_status_enum status);
79 hi_u8 cfg80211_rx_mgmt(const oal_net_device_stru *netdev, hi_s32 freq, hi_s32 l_sig_mbm, const hi_u…
81 hi_u32 cfg80211_csa_channel_switch(const oal_net_device_stru *netdev, hi_s32 freq);
82 hi_u32 cfg80211_remain_on_channel(const oal_net_device_stru *netdev, hi_u32 freq, hi_u32 duration);
[all …]
Dwal_cfg80211_apt.c69 hi_u32 cfg80211_new_sta(const oal_net_device_stru *netdev, const hi_u8 *mac_addr, hi_u8 addr_len, in cfg80211_new_sta() argument
106 …hi_u32 ret = (hi_u32)g_send_event_func(netdev->name, HISI_ELOOP_EVENT_NEW_STA, (hi_u8 *)&new_sta_i… in cfg80211_new_sta()
124 hi_u32 cfg80211_del_sta(oal_net_device_stru *netdev, const hi_u8 *mac_addr, hi_u8 addr_len) in cfg80211_del_sta() argument
129 if ((netdev == HI_NULL) || (mac_addr == HI_NULL)) { in cfg80211_del_sta()
131 (uintptr_t)netdev, (uintptr_t)mac_addr); in cfg80211_del_sta()
140 …l_ret = (hi_u32)g_send_event_func(netdev->name, HISI_ELOOP_EVENT_DEL_STA, (hi_u8 *)mac_addr, addr_… in cfg80211_del_sta()
151 hi_u8 cfg80211_rx_mgmt(const oal_net_device_stru *netdev, hi_s32 freq, hi_s32 l_sig_mbm, const hi_u… in cfg80211_rx_mgmt() argument
155 oal_wireless_dev *wdev = (oal_wireless_dev *)GET_NET_DEV_CFG80211_WIRELESS(netdev); in cfg80211_rx_mgmt()
193 l_ret = (hi_u32)g_send_event_func(netdev->name, HISI_ELOOP_EVENT_RX_MGMT, (hi_u8 *) &rx_mgmt, in cfg80211_rx_mgmt()
261 …l_ret = (hi_u32)g_send_event_func(wdev->netdev->name, HISI_ELOOP_EVENT_TX_STATUS, (hi_u8 *)&tx_sta… in cfg80211_mgmt_tx_status()
[all …]
Dwal_ioctl.c84 static hi_u32 wal_ioctl_get_mode(oal_net_device_stru *netdev, hi_s8 *pc_param);
85 static hi_u32 wal_ioctl_get_essid(oal_net_device_stru *netdev, hi_s8 *pc_param);
86 static hi_u32 wal_ioctl_get_bss_type(oal_net_device_stru *netdev, hi_s8 *pc_param);
87 static hi_u32 wal_ioctl_set_bss_type(oal_net_device_stru *netdev, hi_s8 *pc_param);
88 static hi_u32 wal_ioctl_get_freq(oal_net_device_stru *netdev, hi_s8 *pc_param);
89 static hi_u32 wal_ioctl_get_txpower(oal_net_device_stru *netdev, hi_s8 *pc_param);
90 static hi_u32 wal_ioctl_get_apaddr(oal_net_device_stru *netdev, oal_iw_request_info_stru *info,
92 static hi_u32 wal_ioctl_get_iwrate(oal_net_device_stru *netdev, oal_iw_request_info_stru *info,
94 static hi_u32 wal_ioctl_get_iwsense(oal_net_device_stru *netdev, oal_iw_request_info_stru *info,
96 static hi_u32 wal_ioctl_get_rtsthres(oal_net_device_stru *netdev, oal_iw_request_info_stru *info,
[all …]
Dwal_cfg80211.c287 oal_net_device_stru *netdev = HI_NULL; in wal_del_p2p_group() local
304 netdev = hmac_vap->net_device; in wal_del_p2p_group()
305 if (oal_unlikely(netdev == HI_NULL)) { in wal_del_p2p_group()
318 del_vap_param.net_dev = netdev; in wal_del_p2p_group()
325 wal_force_scan_complete(netdev); in wal_del_p2p_group()
326 wal_stop_vap(netdev); in wal_del_p2p_group()
329 wal_cfg80211_unregister_netdev(netdev); in wal_del_p2p_group()
332 if (wal_deinit_wlan_vap(netdev) == HI_SUCCESS) { in wal_del_p2p_group()
334 oal_net_unregister_netdev(netdev); in wal_del_p2p_group()
335 oal_net_free_netdev(netdev); in wal_del_p2p_group()
[all …]
Dhi_wifi_driver_api.c363 oal_net_device_stru *netdev = HI_NULL; in hi_wifi_sta_get_ap_rssi() local
386 netdev = hmac_vap_get_net_device(mac_vap->vap_id); in hi_wifi_sta_get_ap_rssi()
387 if (netdev == HI_NULL) { in hi_wifi_sta_get_ap_rssi()
400 l_ret = (hi_s32)wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, in hi_wifi_sta_get_ap_rssi()
426 oal_net_device_stru *netdev = HI_NULL; in hi_wifi_set_country() local
444 netdev = oal_get_netdev_by_name(WLAN_CFG_VAP_NAME); in hi_wifi_set_country()
445 if (netdev == HI_NULL) { in hi_wifi_set_country()
450 oal_dev_put(netdev); in hi_wifi_set_country()
452 if (wal_regdomain_update(netdev, cc, MAC_CONTRY_CODE_LEN) != HI_SUCCESS) { in hi_wifi_set_country()
468 oal_net_device_stru *netdev = HI_NULL; in hi_wifi_get_country() local
[all …]
Dwal_hipriv.c507 hi_u32 wal_hipriv_getcountry(oal_net_device_stru *netdev, hi_char *pc_param) in wal_hipriv_getcountry() argument
518 …ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_QUERY, WAL_MSG_WID_LENGTH, (hi_u8 *)&query_msg, HI_T… in wal_hipriv_getcountry()
540 hi_u32 wal_hipriv_set_vap_state(oal_net_device_stru *netdev, hi_char *pc_param) in wal_hipriv_set_vap_state() argument
551 ret = wal_netdev_stop(netdev); in wal_hipriv_set_vap_state()
553 ret = wal_netdev_open(netdev); in wal_hipriv_set_vap_state()
571 hi_u32 wal_hipriv_get_mesh_node_info(oal_net_device_stru *netdev, hi_char *pc_param) in wal_hipriv_get_mesh_node_info() argument
584 …ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_QUERY, WAL_MSG_WID_LENGTH, (hi_u8 *)&query_msg, HI_T… in wal_hipriv_get_mesh_node_info()
616 hi_u32 wal_hipriv_addba_req(oal_net_device_stru *netdev, hi_char *pc_param) in wal_hipriv_addba_req() argument
659 ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, in wal_hipriv_addba_req()
672 hi_u32 wal_hipriv_vap_info(oal_net_device_stru *netdev, hi_char *pc_param) in wal_hipriv_vap_info() argument
[all …]
Dwal_event.c75 oal_net_device_stru *netdev = (oal_net_device_stru *)arg; in wal_scan_result_clean_timeout_fn() local
77 …ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, WAL_MSG_WRITE_MSG_HDR_LENGTH + sizeof(hi_u32), in wal_scan_result_clean_timeout_fn()
112 oal_net_device_stru *netdev = hmac_vap_get_net_device(event->event_hdr.vap_id); in wal_scan_comp_proc_sta() local
113 if (netdev == HI_NULL) { in wal_scan_comp_proc_sta()
151 wal_inform_all_bss(netdev, mac_dev->wiphy, bss_mgmt, event->event_hdr.vap_id); in wal_scan_comp_proc_sta()
161 HdfWifiEventScanDone(netdev, (WifiScanStatus)HISI_SCAN_SUCCESS); in wal_scan_comp_proc_sta()
186 WLAN_SCANRESULT_CLEAN_TIME, netdev, HI_FALSE); in wal_scan_comp_proc_sta()
209 oal_net_device_stru *netdev = HI_NULL; in wal_asoc_comp_proc_sta() local
221 netdev = hmac_vap_get_net_device(event->event_hdr.vap_id); in wal_asoc_comp_proc_sta()
222 if (netdev == HI_NULL) { in wal_asoc_comp_proc_sta()
[all …]
Dwal_cfg80211.h230 hi_void wal_cfg80211_unregister_netdev(oal_net_device_stru *netdev);
236 hi_u32 wal_cfg80211_set_default_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_i…
248 hi_u32 wal_cfg80211_add_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, bo…
250 hi_u32 wal_cfg80211_remove_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index,…
252 hi_u32 wal_cfg80211_change_virtual_intf(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, nl80211…
255 hi_u32 wal_cfg80211_del_station(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev,
260 hi_s32 wal_cfg80211_stop_ap(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev);
262 hi_s32 wal_cfg80211_set_default_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_i…
268 hi_u32 wal_cfg80211_disconnect(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u16 us_reason…
269 hi_u32 wal_cfg80211_change_beacon(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev,
[all …]
Dwal_linux_flowctl.c54 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf, hi_void *accel… in wal_netdev_select_queue() argument
68 mac_vap = (mac_vap_stru *)oal_net_dev_priv(netdev); in wal_netdev_select_queue()
116 oal_net_device_stru *netdev = hmac_vap_get_net_device(vap_id); in wal_flowctl_backp_event_handler() local
117 if (netdev == HI_NULL) { in wal_flowctl_backp_event_handler()
125 oal_net_tx_stop_all_queues(netdev); in wal_flowctl_backp_event_handler()
141 oal_net_stop_subqueue(netdev); in wal_flowctl_backp_event_handler()
143 oal_net_wake_subqueue(netdev); in wal_flowctl_backp_event_handler()
154 oal_net_stop_subqueue(netdev); in wal_flowctl_backp_event_handler()
156 oal_net_wake_subqueue(netdev); in wal_flowctl_backp_event_handler()
183 hi_u16 wal_netdev_select_queue(oal_net_device_stru *netdev, oal_netbuf_stru *netbuf, hi_void *accel… in wal_netdev_select_queue() argument
Dwal_maintenance.c44 oal_net_device_stru *netdev = HI_NULL; in wal_data_acq_start_from_hso() local
53 netdev = oal_get_netdev_by_name(puc_ifname); in wal_data_acq_start_from_hso()
54 if (netdev == HI_NULL) { in wal_data_acq_start_from_hso()
67 …ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, WAL_MSG_WRITE_MSG_HDR_LENGTH + sizeof(wlan_da… in wal_data_acq_start_from_hso()
90 oal_net_device_stru *netdev = oal_get_netdev_by_name(puc_ifname); in wal_data_acq_status_to_hso() local
91 if (netdev == HI_NULL) { in wal_data_acq_status_to_hso()
96 mac_vap_stru *mac_vap = oal_net_dev_priv(netdev); in wal_data_acq_status_to_hso()
117 hi_u32 ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, in wal_data_acq_status_to_hso()
148 oal_net_device_stru *netdev = oal_get_netdev_by_name(puc_ifname); in wal_data_acq_result_addr_to_hso() local
149 if (netdev == HI_NULL) { in wal_data_acq_result_addr_to_hso()
[all …]
Dwal_net.h82 hi_u32 hwal_pbuf_convert_2_skb(const oal_net_device_stru *netdev, oal_lwip_buf *lwip_buf, oal_netbu…
86 hi_u32 wal_netdev_open(oal_net_device_stru *netdev);
87 hi_u32 wal_netdev_stop(oal_net_device_stru *netdev);
89 hi_s32 wal_netdev_open(oal_net_device_stru *netdev);
90 hi_s32 wal_netdev_stop(oal_net_device_stru *netdev);
108 …al_init_drv_wlan_netdev(nl80211_iftype_uint8 type, wal_phy_mode mode, oal_net_device_stru *netdev);
113 hi_s32 wal_deinit_drv_wlan_netdev(oal_net_device_stru *netdev);
114 hi_void set_past_net_device_by_index(hi_u32 netdev_index, oal_net_device_stru *netdev);
Dwal_scan.c87 static hi_void wal_inform_bss_frame(const oal_net_device_stru *netdev, wal_scanned_bss_info_stru *s… in wal_inform_bss_frame() argument
139 HdfWifiEventInformBssFrame(netdev, &channel, (struct ScannedBssInfo *)scanned_bss_info); in wal_inform_bss_frame()
173 hi_void wal_inform_all_bss(const oal_net_device_stru *netdev, oal_wiphy_stru *wiphy, hmac_bss_mgmt_… in wal_inform_all_bss() argument
237 wal_inform_bss_frame(netdev, &scanned_bss_info, wiphy); in wal_inform_all_bss()
240 wal_inform_bss_frame(netdev, &scanned_bss_info, wiphy); in wal_inform_all_bss()
405 oal_net_device_stru *netdev = HI_NULL; in wal_wait_for_scan_timeout_fn() local
422 netdev = hmac_vap_get_net_device(mac_vap->vap_id); in wal_wait_for_scan_timeout_fn()
423 if (netdev == HI_NULL) { in wal_wait_for_scan_timeout_fn()
445 wal_inform_all_bss(netdev, wiphy, bss_mgmt, mac_vap->vap_id); in wal_wait_for_scan_timeout_fn()
449 HdfWifiEventScanDone(netdev, (WifiScanStatus)HISI_SCAN_TIMEOUT); in wal_wait_for_scan_timeout_fn()
[all …]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/hdfadapt/
Dnet_adpater.c114 oal_net_device_stru *netdev; in wal_get_efuse_mac_addr() local
118 netdev = oal_get_netdev_by_name(WLAN_CFG_VAP_NAME); in wal_get_efuse_mac_addr()
119 if (netdev == HI_NULL) { in wal_get_efuse_mac_addr()
124 oal_dev_put(netdev); in wal_get_efuse_mac_addr()
131 …ret = wal_send_cfg_event(netdev, WAL_MSG_TYPE_WRITE, WAL_MSG_WRITE_MSG_HDR_LENGTH + sizeof(hi_s32), in wal_get_efuse_mac_addr()
333 oal_net_device_stru *netdev = HI_NULL; in hwal_lwip_remove_user() local
343 netdev = (oal_net_device_stru *)netif->state; in hwal_lwip_remove_user()
344 if (oal_unlikely((netdev == HI_NULL) || (mac_addr == HI_NULL))) { in hwal_lwip_remove_user()
350 mac_vap = (mac_vap_stru *)oal_net_dev_priv(netdev); in hwal_lwip_remove_user()
382 hi_u32 ret = wal_send_cfg_event(netdev, in hwal_lwip_remove_user()
[all …]
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
Doal_net.c378 oal_net_device_stru *netdev = NetDeviceInit(puc_name, strlen(puc_name), WIFI_LINK, LITE_OS); in oal_net_alloc_netdev() local
379 if (netdev != NULL) { in oal_net_alloc_netdev()
380 netdev->funType.wlanType = PROTOCOL_80211_IFTYPE_STATION; in oal_net_alloc_netdev()
382 return netdev; in oal_net_alloc_netdev()
386 void OalInitSpecialProcPriv(oal_net_device_stru *netdev) in OalInitSpecialProcPriv() argument
388 if (netdev == NULL) { in OalInitSpecialProcPriv()
391 netdev->specialProcPriv = NULL; in OalInitSpecialProcPriv()
401 netdev->specialProcPriv = hisi_eapol; in OalInitSpecialProcPriv()
405 void OalFreeSpecialProcPriv(oal_net_device_stru *netdev) in OalFreeSpecialProcPriv() argument
407 if (netdev == NULL || netdev->specialProcPriv == NULL) { in OalFreeSpecialProcPriv()
[all …]
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/hdf/
Dhdf_mac80211_ap.c193 struct net_device *netdev = NULL; in WalConfigAp() local
197 netdev = GetLinuxInfByNetDevice(netDev); in WalConfigAp()
198 if (!netdev) { in WalConfigAp()
203 wiphy = get_linux_wiphy_ndev(netdev); in WalConfigAp()
210 ret = SetupWireLessDev(netdev, apConf); in WalConfigAp()
216 HDF_LOGE("%s: before iftype = %d!", __func__, netdev->ieee80211_ptr->iftype); in WalConfigAp()
217 netdev->ieee80211_ptr->iftype = NL80211_IFTYPE_AP; in WalConfigAp()
218 HDF_LOGE("%s: after iftype = %d!", __func__, netdev->ieee80211_ptr->iftype); in WalConfigAp()
223 ret = (int32_t)wl_cfg80211_ops.change_virtual_intf(wiphy, netdev, in WalConfigAp()
224 (enum nl80211_iftype)netdev->ieee80211_ptr->iftype, NULL); in WalConfigAp()
[all …]
Dnet_bdh_adpater.c38 void set_krn_netdev(struct NetDevice *hnetdev, struct net_device *netdev, int ifidx) in set_krn_netdev() argument
41 g_hdf_infmap[ifidx].netdev = netdev; in set_krn_netdev()
51 return g_hdf_infmap[ifidx].netdev; in get_krn_netdev()
96 struct net_device *netdev = get_krn_netdev(0); in wal_get_dev_addr() local
109 us_addr[tmp] = netdev->dev_addr[tmp]; in wal_get_dev_addr()
171 struct net_device *netdev = NULL; in BDH6InitNetdev() local
197 netdev = GetLinuxInfByNetDevice(hnetdev); in BDH6InitNetdev()
198 if (netdev == NULL) { in BDH6InitNetdev()
219 set_krn_netdev(hnetdev, netdev, ifidx); in BDH6InitNetdev()
281 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_bdh6_netdev_open() local
[all …]
Dhdf_bdh_mac80211.c53 struct net_device *netdev = NULL; in BDH6WalSetMode() local
59 netdev = GetLinuxInfByNetDevice(netDev); in BDH6WalSetMode()
60 if (!netdev) { in BDH6WalSetMode()
65 wiphy = get_linux_wiphy_ndev(netdev); in BDH6WalSetMode()
70 old_iftype = netdev->ieee80211_ptr->iftype; in BDH6WalSetMode()
82 retVal = (int32_t)wl_cfg80211_ops.change_virtual_intf(wiphy, netdev, in BDH6WalSetMode()
96 struct net_device *netdev = NULL; in BDH6WalAddKey() local
104 netdev = GetLinuxInfByNetDevice(netDev); in BDH6WalAddKey()
105 if (!netdev) { in BDH6WalAddKey()
110 wiphy = get_linux_wiphy_ndev(netdev); in BDH6WalAddKey()
[all …]
Dhdf_mac80211_p2p.c90 struct net_device *netdev = NULL; in WalRemainOnChannel() local
99 netdev = GetLinuxInfByNetDevice(netDev); in WalRemainOnChannel()
100 if (!netdev) { in WalRemainOnChannel()
105 wiphy = get_linux_wiphy_ndev(netdev); in WalRemainOnChannel()
114 cfgdev = ndev_to_cfg(netdev); in WalRemainOnChannel()
126 struct net_device *netdev = NULL; in WalCancelRemainOnChannel() local
132 netdev = GetLinuxInfByNetDevice(netDev); in WalCancelRemainOnChannel()
133 wiphy = get_linux_wiphy_ndev(netdev); in WalCancelRemainOnChannel()
140 if (!netdev) { in WalCancelRemainOnChannel()
145 cfgdev = ndev_to_cfg(netdev); in WalCancelRemainOnChannel()
[all …]
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/
Dnet_bdh_adpater.c43 void set_krn_netdev(struct NetDevice *hnetdev, struct net_device *netdev, int ifidx) in set_krn_netdev() argument
46 g_hdf_infmap[ifidx].netdev = netdev; in set_krn_netdev()
56 return g_hdf_infmap[ifidx].netdev; in get_krn_netdev()
100 struct net_device *netdev = get_krn_netdev(0); in wal_get_dev_addr() local
113 us_addr[tmp] = netdev->dev_addr[tmp]; in wal_get_dev_addr()
146 struct net_device *netdev = NULL; in P2pInitNetdev() local
175 netdev = GetLinuxInfByNetDevice(hnetdev); in P2pInitNetdev()
176 if (netdev == NULL) { in P2pInitNetdev()
197 set_krn_netdev(hnetdev, netdev, ifidx); in P2pInitNetdev()
259 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_bdh6_netdev_open() local
[all …]
Dhdf_bdh_mac80211.c83 struct net_device *netdev = NULL; in BDH6WalSetMode() local
89 netdev = GetLinuxInfByNetDevice(netDev); in BDH6WalSetMode()
90 if (!netdev) { in BDH6WalSetMode()
95 wiphy = get_linux_wiphy_ndev(netdev); in BDH6WalSetMode()
100 old_iftype = netdev->ieee80211_ptr->iftype; in BDH6WalSetMode()
113 retVal = (int32_t)wl_cfg80211_ops.change_virtual_intf(wiphy, netdev, in BDH6WalSetMode()
128 struct net_device *netdev = NULL; in BDH6WalAddKey() local
136 netdev = GetLinuxInfByNetDevice(netDev); in BDH6WalAddKey()
137 if (!netdev) { in BDH6WalAddKey()
142 wiphy = get_linux_wiphy_ndev(netdev); in BDH6WalAddKey()
[all …]
Dhdfinit_bdh.c110 static int32_t InitPrimaryInterface(struct NetDevice *netDevice, struct net_device *netdev) in InitPrimaryInterface() argument
132 set_krn_netdev(netDevice, netdev, g_hdf_ifidx); in InitPrimaryInterface()
137 static int32_t InitP2pInterface(struct NetDevice *netDevice, struct net_device *netdev) in InitP2pInterface() argument
159 wiphy = get_linux_wiphy_ndev(netdev); in InitP2pInterface()
172 hdf_cfgp2p_register_ndev(p2p_netdev, netdev, wiphy); in InitP2pInterface()
181 struct net_device *netdev = NULL; in BDH6Init() local
195 netdev = GetLinuxInfByNetDevice(netDevice); in BDH6Init()
196 if (netdev == NULL) { in BDH6Init()
201 ret = InitPrimaryInterface(netDevice, netdev); in BDH6Init()
206 ret = InitP2pInterface(netDevice, netdev); in BDH6Init()
[all …]
/device/board/unionman/unionpi_tiger/kernel/hdf/wifi/rtl8822cs/hdf/
Dnet_adapter.c57 void set_krn_netdev(struct net_device *netdev) in set_krn_netdev() argument
59 g_linux_netdev = (struct net_device *)netdev; in set_krn_netdev()
117 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_rtl8822cs_netdev_changemtu() local
120 if (netdev == NULL) { in hdf_rtl8822cs_netdev_changemtu()
156 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_rtl8822cs_netdev_getstats() local
160 if (netdev == NULL) { in hdf_rtl8822cs_netdev_getstats()
165 kdevStat = rtw_net_get_stats(netdev); in hdf_rtl8822cs_netdev_getstats()
186 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_rtl8822cs_netdev_setmacaddr() local
190 if (netdev == NULL || addr == NULL) { in hdf_rtl8822cs_netdev_setmacaddr()
195 retVal = (int32_t)rtw_cfg80211_monitor_if_set_mac_address(netdev, addr); in hdf_rtl8822cs_netdev_setmacaddr()
[all …]
/device/board/isoftstone/zhiyuan/kernel/hdf/driver/wifi/xr829_hdfadapter/
Dnet_adpater.c78 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_netdev_open() local
79 if (netdev != get_krn_netdev()) { in hdf_netdev_open()
84 if (netdev == NULL) { in hdf_netdev_open()
92 retVal = (int32_t)ieee80211_dataif_ops.ndo_open(netdev); in hdf_netdev_open()
97 netDev->ieee80211Ptr = netdev->ieee80211_ptr; in hdf_netdev_open()
111 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_netdev_stop() local
113 if (netdev != get_krn_netdev()) { in hdf_netdev_stop()
116 if (netdev == NULL) { in hdf_netdev_stop()
122 retVal = (int32_t)ieee80211_dataif_ops.ndo_stop(netdev); in hdf_netdev_stop()
134 struct net_device *netdev = GetLinuxInfByNetDevice(netDev); in hdf_netdev_xmit() local
[all …]

12345