# wifi\_module.h ## **Overview** **Related Modules:** [WLAN](WLAN.md) **Description:** Provides features of the WLAN module and functions to create and delete modules. The **[WifiModule](WifiModule.md)** object is a core abstraction of the WLAN driver. It contains a module that communicates with user-level processes and also contains features. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures

Data Structure Name

Description

WifiModuleIface

Defines WLAN module APIs.

WifiModule

Defines the WLAN module.

WifiFeature

Defines a WLAN feature.

WifiFeatureList

Defines the WLAN feature list.

HdfWifiChipData

Defines a WLAN chip.

## Functions

Function Name

Description

WifiModuleCreate (const struct HdfConfigWifiModuleConfig *config)

struct WifiModule

Creates a WifiModule object based on a specified configuration generated by the HCS.

WifiModuleDelete (struct WifiModule *module)

void 

Deletes a specified WifiModule object.

DelFeature (struct WifiModule *module, uint16_t featureType)

int32_t 

Deletes a specified feature from a specified module.

AddFeature (struct WifiModule *module, uint16_t featureType, struct WifiFeature *featureData)

int32_t 

Adds a specified feature to a specified module.