1 /* 2 * Copyright 2008-2024 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 /*! \file wlan_11d.h 9 * \brief WLAN module 11d API 10 */ 11 12 #ifndef __WLAN_11D_H__ 13 #define __WLAN_11D_H__ 14 15 #include <wifi.h> 16 17 /** Enable 11D support in WLAN Driver. 18 * 19 * \note This API should be called after WLAN is initialized 20 * but before starting uAP or making any connection attempts on station 21 * interface. 22 * 23 * \param[in] state 1: enable, 0: disable 24 * 25 * \return -WM_FAIL if operation was failed. 26 * \return WM_SUCCESS if operation was successful. 27 */ wlan_enable_11d(int state)28static inline int wlan_enable_11d(int state) 29 { 30 if (state) 31 return wifi_enable_11d_support(); 32 else 33 return wifi_disable_11d_support(); 34 } 35 36 #if UAP_SUPPORT 37 /** Enable 11D support in WLAN Driver for uap interface. 38 * 39 * \note This API should be called after WLAN is initialized 40 * but before starting uAP or making any connection attempts on station 41 * interface. 42 * 43 * \param[in] state 1: enable, 0: disable 44 * 45 * \return -WM_FAIL if operation was failed. 46 * \return WM_SUCCESS if operation was successful. 47 */ wlan_enable_uap_11d(int state)48static inline int wlan_enable_uap_11d(int state) 49 { 50 if (state) 51 return wifi_enable_uap_11d_support(); 52 else 53 return wifi_disable_uap_11d_support(); 54 } 55 #endif 56 #endif /* __WLAN_11D_H__ */ 57