/ohos5.0/drivers/hdf_core/framework/include/wifi/ |
H A D | wifi_mac80211_ops.h | 484 int32_t (*SetMode)(NetDevice *netDev, enum WlanWorkMode mode); 573 int32_t (*SetTxPower)(NetDevice *netDev, int32_t power); 724 int32_t (*Disconnect)(NetDevice *netDev, uint16_t reasonCode); 749 int32_t (*AbortScan)(NetDevice *netDev); 788 int32_t (*StopPnoScan)(NetDevice *netDev); 833 int32_t (*StartAp)(NetDevice *netDev); 845 int32_t (*StopAp)(NetDevice *netDev); 918 int32_t (*CancelRemainOnChannel)(NetDevice *netDev); 920 int32_t (*ProbeReqReport)(NetDevice *netDev, int32_t report); 922 int32_t (*AddIf)(NetDevice *netDev, WifiIfAdd *ifAdd); [all …]
|
H A D | hdf_wifi_event.h | 322 int32_t HdfWifiEventNewSta(const struct NetDevice *netDev, const uint8_t *macAddr, uint8_t addrLen, 337 int32_t HdfWifiEventDelSta(struct NetDevice *netDev, const uint8_t *macAddr, uint8_t addrLen); 351 int32_t HdfWifiEventInformBssFrame(const struct NetDevice *netDev, const struct WlanChannel *channe… 366 int32_t HdfWifiEventScanDone(const struct NetDevice *netDev, WifiScanStatus status); 379 int32_t HdfWifiEventConnectResult(const struct NetDevice *netDev, const struct ConnetResult *result… 409 int32_t HdfWifiEventMgmtTxStatus(const struct NetDevice *netDev, const uint8_t *buf, size_t len, ui… 425 int32_t HdfWifiEventRxMgmt(const struct NetDevice *netDev, int32_t freq, int32_t sigMbm, 439 int32_t HdfWifiEventCsaChannelSwitch(const struct NetDevice *netDev, int32_t freq); 451 int32_t HdfWifiEventTimeoutDisconnected(const struct NetDevice *netDev); 477 int32_t HdfWifiEventRemainOnChannel(const struct NetDevice *netDev, uint32_t freq, uint32_t duratio… [all …]
|
H A D | wifi_module.h | 179 int32_t (*init)(struct HdfChipDriver *chipDriver, NetDevice *netDev); 192 int32_t (*deinit)(struct HdfChipDriver *chipDriver, NetDevice *netDev);
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wifi_event.c | 68 if ((netDev == NULL) || (macAddr == NULL)) { in HdfWifiEventDelSta() 111 if (!HdfSbufWriteString(data, netDev->name) || in HdfWifiEventInformBssFrame() 135 if (netDev == NULL) { in HdfWifiEventScanDone() 209 if (netDev == NULL || result == NULL) { in HdfWifiEventConnectResult() 234 HdfStartDhcpClient(netDev); in HdfWifiEventConnectResult() 246 if (netDev == NULL) { in HdfWifiEventDisconnected() 274 if (netDev == NULL) { in HdfWifiEventMgmtTxStatus() 302 if (netDev == NULL) { in HdfWifiEventCsaChannelSwitch() 329 if (netDev == NULL) { in HdfWifiEventTimeoutDisconnected() 339 if (!HdfSbufWriteString(data, netDev->name)) { in HdfWifiEventTimeoutDisconnected() [all …]
|
H A D | hdf_wlan_utils.c | 25 if (netDev == NULL) { in GetPlatformData() 75 int32_t RenewNetDevice(NetDevice **netDev) in RenewNetDevice() argument 81 if (netDev == NULL || *netDev == NULL) { in RenewNetDevice() 93 data = GetPlatformData(*netDev); in RenewNetDevice() 99 ret = NetDeviceDeInit(*netDev); in RenewNetDevice() 103 *netDev = NULL; in RenewNetDevice() 116 *netDev = NULL; in RenewNetDevice() 121 *netDev = result; in RenewNetDevice() 199 if (netDev == NULL) { in ReleasePlatformNetDevice() 208 data = GetPlatformData(netDev); in ReleasePlatformNetDevice() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/components/softap/ |
H A D | ap.c | 27 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in ChangeBeacon() 32 if (netDev == NULL || apSettings == NULL) { in ChangeBeacon() 55 chipDriver = GetChipDriver(netDev); in StartAp() 71 ret = chipDriver->apOps->ConfigAp(netDev, &apConf); in StartAp() 76 ret = ChangeBeacon(netDev, apSettings); in StartAp() 82 ret = chipDriver->apOps->StartAp(netDev); in StartAp() 88 return NetIfSetStatus(netDev, NETIF_UP); in StartAp() 91 static uint32_t StopAp(struct NetDevice *netDev) in StopAp() argument 94 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in StopAp() 100 ret = chipDriver->apOps->StopAp(netDev); in StopAp() [all …]
|
/ohos5.0/drivers/hdf_core/framework/include/net/ |
H A D | net_device.h | 498 int32_t (*init)(struct NetDevice *netDev); /**< Initializes a network device to be added. */ 499 void (*deInit)(struct NetDevice *netDev); /**< Deinitializes a network device to be delete. */ 500 int32_t (*open)(struct NetDevice *netDev); /**< Opens the data link layer. */ 501 int32_t (*stop)(struct NetDevice *netDev); /**< Closes the data link layer. */ 502 NetDevTxResult (*xmit)(struct NetDevice *netDev, NetBuf *netBuff); /**< Sends data. */ 504 …int32_t (*setMacAddr)(struct NetDevice *netDev, void *addr); /**< Sets the MAC addres… 505 …struct NetDevStats *(*getStats)(struct NetDevice *netDev); /**< Obtains the statist… 507 …uint16_t (*selectQueue)(struct NetDevice *netDev, NetBuf *netBuff); /**< Selects a priority … 509 …int32_t (*changeMtu)(struct NetDevice *netDev, int32_t newMtu); /**< Changes the maximum… 512 void (*linkStatusChanged)(struct NetDevice *netDev); /**< Detects the change of [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/platform/include/ |
H A D | hdf_wlan_utils.h | 16 struct HdfWifiNetDeviceData *GetPlatformData(const struct NetDevice *netDev); 18 struct HdfChipDriver *GetChipDriver(const struct NetDevice *netDev); 22 struct WlanHwCapability* GetHwCapability(struct NetDevice *netDev); 25 int32_t RenewNetDevice(NetDevice **netDev); 26 int32_t ReleasePlatformNetDevice(struct NetDevice *netDev);
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/network/src/ |
H A D | net_device_adapter.c | 90 if (netDev == NULL || lwipBuf == NULL) { in ConverPbuffToNetBuf() 94 return Pbuf2NetBuf(netDev, lwipBuf); in ConverPbuffToNetBuf() 126 struct NetDevice *netDev = ndImpl->netDevice; in LwipSend() local 133 netDevIf = netDev->netDeviceIf; in LwipSend() 135 netDevIf->xmit(netDev, netBuff); in LwipSend() 154 struct NetDevice *netDev = NULL; in LwipSetHwaddr() local 160 netDev = ndImpl->netDevice; in LwipSetHwaddr() 161 netDevIf = netDev->netDeviceIf; in LwipSetHwaddr() 166 return netDevIf->setMacAddr(netDev, addr); in LwipSetHwaddr() 179 if (netDev == NULL) { in CreateLwipNetIf() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/network/src/ |
H A D | net_device_adapter.c | 113 if (netDev == NULL || lwipBuf == NULL) { in ConverPbuffToNetBuf() 117 return Pbuf2NetBuf(netDev, lwipBuf); in ConverPbuffToNetBuf() 149 struct NetDevice *netDev = ndImpl->netDevice; in LwipSend() local 156 netDevIf = netDev->netDeviceIf; in LwipSend() 158 netDevIf->xmit(netDev, netBuff); in LwipSend() 177 struct NetDevice *netDev = NULL; in LwipSetHwaddr() local 183 netDev = ndImpl->netDevice; in LwipSetHwaddr() 184 netDevIf = netDev->netDeviceIf; in LwipSetHwaddr() 189 return netDevIf->setMacAddr(netDev, addr); in LwipSetHwaddr() 202 if (netDev == NULL) { in CreateLwipNetIf() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/module/ |
H A D | wifi_base.c | 168 struct NetDevice *netDev = NULL; in WifiCmdNewKey() local 197 netDev = NetDeviceGetInstByName(ifName); in WifiCmdNewKey() 198 if (netDev == NULL) { in WifiCmdNewKey() 215 struct NetDevice *netDev = NULL; in WifiCmdDelKey() local 242 netDev = NetDeviceGetInstByName(ifName); in WifiCmdDelKey() 243 if (netDev == NULL) { in WifiCmdDelKey() 277 struct NetDevice *netDev = NULL; in WifiCmdSetKey() local 305 if (netDev == NULL) { in WifiCmdSetKey() 1376 struct NetDevice *netDev = NULL; in WifiCmdGetNetDevInfo() local 1387 if (netDev != NULL) { in WifiCmdGetNetDevInfo() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/components/sta/ |
H A D | sta.c | 24 inline static int32_t Connect(struct NetDevice *netDev, struct WlanConnectParams *param) in Connect() argument 26 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in Connect() 32 return chipDriver->staOps->Connect(netDev, param); in Connect() 35 inline static int32_t Disconnect(struct NetDevice *netDev, uint16_t reasonCode) in Disconnect() argument 37 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in Disconnect() 43 return chipDriver->staOps->Disconnect(netDev, reasonCode); in Disconnect() 48 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in ScanAll() 55 return chipDriver->staOps->StartScan(netDev, params); in ScanAll() 58 inline static int32_t AbortScan(struct NetDevice *netDev) in AbortScan() argument 60 struct HdfChipDriver *chipDriver = GetChipDriver(netDev); in AbortScan() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/network/src/ |
H A D | net_device_adapter.c | 53 struct NetDevice *netDev = NULL; in NetDevXmit() local 61 netDev = priv->impl->netDevice; in NetDevXmit() 64 netDevIf = netDev->netDeviceIf; in NetDevXmit() 66 netDevIf->xmit(netDev, skb); in NetDevXmit() 77 struct NetDevice *netDev = NULL; in NetDevGetStats() local 88 netDev = priv->impl->netDevice; in NetDevGetStats() 89 netDevIf = netDev->netDeviceIf; in NetDevGetStats() 91 stats = netDevIf->getStats(netDev); in NetDevGetStats()
|
/ohos5.0/drivers/hdf_core/framework/model/network/wifi/core/ |
H A D | hdf_wifi_core.c | 226 NetDevice *netDev = NULL; in HdfWlanInitInterface() local 244 netDev = AllocPlatformNetDevice(device); in HdfWlanInitInterface() 245 if (netDev == NULL) { in HdfWlanInitInterface() 250 data = GetPlatformData(netDev); in HdfWlanInitInterface() 258 ret = chipDriver->init(chipDriver, netDev); in HdfWlanInitInterface() 272 if (netDev != NULL) { in HdfWlanInitInterface() 273 ReleasePlatformNetDevice(netDev); in HdfWlanInitInterface()
|
/ohos5.0/drivers/hdf_core/framework/model/network/common/netdevice/ |
H A D | net_device.c | 140 struct NetDevice *netDev = NULL; in GetHdfNetDeviceByLinuxInf() local 142 netDev = priv->impl->netDevice; in GetHdfNetDeviceByLinuxInf() 143 return netDev; in GetHdfNetDeviceByLinuxInf() 272 struct NetDevice *netDev = NULL; in NetDeviceIsAnyInstRunning() local 277 netDev = g_netDeviceImplTable[i]->netDevice; in NetDeviceIsAnyInstRunning() 278 if ((GET_NET_DEV_FLAGS(netDev) & NET_DEVICE_IFF_RUNNING) != 0) { in NetDeviceIsAnyInstRunning()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-external-des.md | 106 | int32_t (\*init)(struct NetDevice \*netDev) | 初始化NetDevice。 | 107 …| struct NetDevStats \*(\*getStats)(struct NetDevice \*netDev) | 获取NetDevice的状… 108 …| int32_t (\*setMacAddr)(struct NetDevice \*netDev, void \*addr) | 设置Mac地… 109 | void (\*deInit)(struct NetDevice \*netDev) | 注销NetDevice。 | 110 | int32_t (\*open)(struct NetDevice \*netDev) | 打开NetDevice。 | 111 | int32_t (\*stop)(struct NetDevice \*netDev) | 关闭NetDevice。 | 130 | int32_t (\*startAp)(NetDevice \*netDev) | 启动AP。 | 131 | int32_t (\*stopAp)(NetDevice \*netDev) | 停止AP。 | 132 …| int32_t (\*connect)(NetDevice \*netDev, WifiConnectParams \*param) | 开始关联。 | 133 | int32_t (\*disconnect)(NetDevice \*netDev, uint16_t reasonCode) | 取消关联。 |
|
/ohos5.0/drivers/hdf_core/framework/model/network/ethernet/src/ |
H A D | eth_device.c | 261 struct HdfEthNetDeviceData *GetEthNetDeviceData(const struct NetDevice *netDev) in GetEthNetDeviceData() argument 263 if (netDev == NULL) { in GetEthNetDeviceData() 266 return (struct HdfEthNetDeviceData *)(netDev->classDriverPriv); in GetEthNetDeviceData()
|
H A D | hdf_eth_core.c | 53 static int32_t SetEthNetworkAddr(struct NetDevice *netDev) in SetEthNetworkAddr() argument 63 if (NetIfSetAddr(netDev, &ip, &netmask, &gw) != HDF_SUCCESS) { in SetEthNetworkAddr()
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | porting-smallchip-driver-oom.md | 191 … HdfChipDriver \*chipDriver, NetDevice \*netDev) | 初始化当前网络接口,这里需要向netDev提供接口Ne… 192 …*deinit)(struct HdfChipDriver \*chipDriver, NetDevice \*netDev) | 去初始化当前网络接口 |
|
H A D | standard-system-porting-guide.md | 338 … HdfChipDriver \*chipDriver, NetDevice \*netDev) | 初始化当前网络接口,这里需要向netDev提供接口Ne… 339 …*deinit)(struct HdfChipDriver \*chipDriver, NetDevice \*netDev) | 去初始化当前网络接口 |
|
/ohos5.0/drivers/hdf_core/framework/include/ethernet/ |
H A D | eth_chip_driver.h | 35 struct HdfEthNetDeviceData *GetEthNetDeviceData(const struct NetDevice *netDev);
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-external-des.md | 106 | int32_t (\*init)(struct NetDevice \*netDev) | Initializes a network device.| 107 …| struct NetDevStats \*(\*getStats)(struct NetDevice \*netDev) | Obtains the s… 108 …| int32_t (\*setMacAddr)(struct NetDevice \*netDev, void \*addr) | Sets t… 109 | void (\*deInit)(struct NetDevice \*netDev) | Deinitializes a network device.| 110 | int32_t (\*open)(struct NetDevice \*netDev) | Opens a network device.| 111 | int32_t (\*stop)(struct NetDevice \*netDev) | Stops a network device.| 130 | int32_t (\*startAp)(NetDevice \*netDev) | Starts an AP.| 131 | int32_t (\*stopAp)(NetDevice \*netDev) | Stops an AP.| 132 …| int32_t (\*connect)(NetDevice \*netDev, WifiConnectParams \*param) | Connect… 133 …| int32_t (\*disconnect)(NetDevice \*netDev, uint16_t reasonCode) | Disconnect…
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | porting-smallchip-driver-oom.md | 191 …;NetDevice \*netDev) | Initializes the current network interface. The **NetDeviceInterFace** … 192 …init)(struct HdfChipDriver \*chipDriver, NetDevice \*netDev) | Deinitializes t…
|
H A D | standard-system-porting-guide.md | 338 …iver, NetDevice \*netDev) | Initializes the current network interface. The **NetDeviceInterFace** … 339 …| int32_t (\*deinit)(struct HdfChipDriver \*chipDriver, NetDevice \*netDev) | Deinitializes the cu…
|