同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The WLAN module is developed based on the OpenHarmony Driver Foundation. It supports cross-OS migration, component adaptation, and modular assembly and compilation. Based on the unified APIs provided by the WLAN module, driver developers of WLAN vendors can adapt their driver code and developers of the hardware abstraction layer (HAL) are capable of creating, disabling, scanning, and connecting to WLAN hotspots. The following figure shows the framework of the WLAN module:
The WLAN module provides the following three types of APIs:
This document provides guidelines on how to initialize a WLAN module.
Figure 2 Available APIs of the WLAN module
The WLAN driver module provides APIs for HAL developers, such as creating, disabling, scanning, connecting to or disconnecting from WLAN hotpots.
The WLAN driver module provides APIs that can be directly called by driver developers, such as creating/releasing a WifiModule, connecting to/disconnecting from a WLAN hotspot, applying for/releasing a network data buffer, and converting between the pbuf structure of Lightweight TCP/IP Stack (lwIP) and a network data buffer.
Table 1 describes some APIs.
Table 1 APIs that can be directly called by driver developers
The WLAN driver module provides APIs for driver developers to implement capabilities, such as initializing/deregistering, opening/stopping a network device, and obtaining the state of a network device.
Table 2 describes some APIs.
Table 2 APIs for driver developers of WLAN vendors to implement
int32_t (*setMacAddr)(struct NetDevice *netDev, void *addr); |
||
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。