加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:03
#
文件名称:
hdf_wifi_event-h.md
所在目录:
Openharmony v1.0 / docs / docs-en / api / api-SmartVision-Devices
文件大小:
18.46 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# hdf\_wifi\_event.h
## **Overview**
**Related Modules:**
[WLAN](wlan.md)
**Description:**
Declares WLAN driver events.
The functions in this file are used to report events such as scanning results, scanning completion, and station disconnection to the WPA interface.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures






















































Data Structure Name


Description


RateInfo


Defines the rate information received or sent over WLAN.


StaBssParameters


Defines parameters related to the WLAN module that works in station mode.


StaFlagUpdate


Defines the update of the Sta flag.


StationInfo


Defines station information.


Auth


Defines authentication information.


Deauth


Defines deauthentication information.


AssocReq


Defines station association request.


AssocResp


Defines station association response.


ReassocReq


Defines station reassociation request.


ReassocResp


Defines station reassociation response.


Disassoc


Defines station disconnection.


Beacon


Defines the update of the Sta flag.


ProbeResp


Defines scanning response.


Ieee80211Mgmt


Defines management frame information.


ScannedBssInfo


Represents the scanned BSS information.


ConnetResult


Defines association results.



## Enumerations









Enumeration Name


Description


WifiHmacMgmtStatus { WIFI_HMAC_MGMT_SUCCESS = 0, WIFI_HMAC_MGMT_INVALID = 1, WIFI_HMAC_MGMT_TIMEOUT = 2, WIFI_HMAC_MGMT_REFUSED = 3, WIFI_HMAC_MGMT_TOMANY_REQ = 4, WIFI_HMAC_MGMT_ALREADY_BSS = 5 }


Enumerates MLME management statuses, indicating whether a device is successfully associated or fails to be associated.



## Functions







































Function Name


Description


HdfWifiEventNewSta (const struct NetDevice *netdev, const uint8_t *macAddr, uint8_t addrLen, const struct StationInfo *info)


int32_t


Reports a new STA event.


HdfWifiEventDelSta (struct NetDevice *netdev, const uint8_t *macAddr, uint8_t addrLen)


int32_t


Reports a station deletion event.


HdfWifiEventInformBssFrame (const struct NetDevice *netdev, struct Wiphy *wiphy, const struct Ieee80211Channel *channel, const struct ScannedBssInfo *bssInfo)


int32_t


Reports a scanned BSS event.


HdfWifiEventScanDone (const struct NetDevice *netdev, WifiScanStatus status)


int32_t


Reports a scanning completion event.


HdfWifiEventConnectResult (const struct NetDevice *netdev, const struct ConnetResult *result)


int32_t


Reports a connection result event.


HdfWifiEventDisconnected (const struct NetDevice *netdev, uint16_t reason, const uint8_t *ie, uint32_t len)


int32_t


Reports a disconnection event.


HdfWifiEventMgmtTxStatus (const struct NetDevice *netdev, const uint8_t *buf, size_t len, uint8_t ack)


int32_t


Reports a transmission management status event.


HdfWifiEventRxMgmt (const struct NetDevice *netdev, int32_t freq, int32_t sigMbm, const uint8_t *buf, size_t len)


int32_t


Reports a receive management status event.


HdfWifiEventCsaChannelSwitch (const struct NetDevice *netdev, int32_t freq)


int32_t


Reports a CSA channel switching event.


HdfWifiEventTimeoutDisconnected (const struct NetDevice *netdev)


int32_t


Reports a timeout disconnection event.


HdfWifiEventEapolRecv (const char *name, void *context)


int32_t


Reports the event of receiving the EAPOL frame and notifies WPA to read the EAPOL frame.


点赞 回复
回帖
支持markdown部分语法 ?