| /* |
| * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. |
| * |
| * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| * |
| * |
| * Permission to use, copy, modify, and/or distribute this software for |
| * any purpose with or without fee is hereby granted, provided that the |
| * above copyright notice and this permission notice appear in all |
| * copies. |
| * |
| * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| * PERFORMANCE OF THIS SOFTWARE. |
| */ |
| |
| /* |
| * This file was originally distributed by Qualcomm Atheros, Inc. |
| * under proprietary terms before Copyright ownership was assigned |
| * to the Linux Foundation. |
| */ |
| |
| #if !defined(WLAN_HDD_HOSTAPD_H) |
| #define WLAN_HDD_HOSTAPD_H |
| |
| /** |
| * DOC: wlan_hdd_hostapd.h |
| * |
| * WLAN Host Device driver hostapd header file |
| */ |
| |
| /* Include files */ |
| |
| #include <linux/netdevice.h> |
| #include <linux/skbuff.h> |
| #include <qdf_list.h> |
| #include <qdf_types.h> |
| #include <wlan_hdd_main.h> |
| |
| /* Preprocessor definitions and constants */ |
| |
| /* max length of command string in hostapd ioctl */ |
| #define HOSTAPD_IOCTL_COMMAND_STRLEN_MAX 8192 |
| |
| struct hdd_adapter *hdd_wlan_create_ap_dev(struct hdd_context *hdd_ctx, |
| tSirMacAddr macAddr, |
| unsigned char name_assign_type, |
| uint8_t *name); |
| |
| QDF_STATUS hdd_unregister_hostapd(struct hdd_adapter *pAdapter, bool rtnl_held); |
| |
| eCsrAuthType |
| hdd_translate_rsn_to_csr_auth_type(uint8_t auth_suite[4]); |
| |
| int hdd_softap_set_channel_change(struct net_device *dev, |
| int target_channel, |
| enum phy_ch_width target_bw); |
| |
| #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH |
| void hdd_sap_restart_with_channel_switch(struct hdd_adapter *adapter, |
| uint32_t target_channel, |
| uint32_t target_bw); |
| /** |
| * sap_restart_chan_switch_cb() - Function to restart SAP with |
| * a different channel |
| * @psoc: PSOC object information |
| * @vdev_id: vdev id |
| * @channel: channel to switch |
| * |
| * This function restarts SAP with a different channel |
| * |
| * Return: None |
| * |
| */ |
| void sap_restart_chan_switch_cb (struct wlan_objmgr_psoc *psoc, |
| uint8_t vdev_id, uint32_t channel, |
| uint32_t channel_bw); |
| /** |
| * wlan_hdd_get_channel_for_sap_restart() - Function to get |
| * suitable channel and restart SAP |
| * @psoc: PSOC object information |
| * @vdev_id: vdev id |
| * @channel: channel to be returned |
| * @sec_ch: secondary channel to be returned |
| * |
| * This function gets the channel parameters to restart SAP |
| * |
| * Return: None |
| * |
| */ |
| QDF_STATUS wlan_hdd_get_channel_for_sap_restart( |
| struct wlan_objmgr_psoc *psoc, |
| uint8_t vdev_id, uint8_t *channel, |
| uint8_t *sec_ch); |
| #endif |
| |
| eCsrEncryptionType |
| hdd_translate_rsn_to_csr_encryption_type(uint8_t cipher_suite[4]); |
| |
| eCsrEncryptionType |
| hdd_translate_rsn_to_csr_encryption_type(uint8_t cipher_suite[4]); |
| |
| eCsrAuthType |
| hdd_translate_wpa_to_csr_auth_type(uint8_t auth_suite[4]); |
| |
| eCsrEncryptionType |
| hdd_translate_wpa_to_csr_encryption_type(uint8_t cipher_suite[4]); |
| |
| QDF_STATUS hdd_softap_sta_deauth(struct hdd_adapter *adapter, |
| struct tagCsrDelStaParams *pDelStaParams); |
| void hdd_softap_sta_disassoc(struct hdd_adapter *adapter, |
| struct tagCsrDelStaParams *pDelStaParams); |
| int hdd_softap_unpack_ie(tHalHandle halHandle, |
| eCsrEncryptionType *pEncryptType, |
| eCsrEncryptionType *mcEncryptType, |
| eCsrAuthType *pAuthType, |
| bool *pMFPCapable, |
| bool *pMFPRequired, |
| uint16_t gen_ie_len, uint8_t *gen_ie); |
| |
| QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, |
| void *usrDataForCallback); |
| QDF_STATUS hdd_init_ap_mode(struct hdd_adapter *pAdapter, bool reinit); |
| void hdd_set_ap_ops(struct net_device *pWlanHostapdDev); |
| int hdd_hostapd_stop(struct net_device *dev); |
| int hdd_sap_context_init(struct hdd_context *hdd_ctx); |
| void hdd_sap_context_destroy(struct hdd_context *hdd_ctx); |
| #ifdef QCA_HT_2040_COEX |
| QDF_STATUS hdd_set_sap_ht2040_mode(struct hdd_adapter *pHostapdAdapter, |
| uint8_t channel_type); |
| #endif |
| |
| |
| int wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy, |
| struct net_device *dev); |
| |
| int wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy, |
| struct net_device *dev, |
| struct cfg80211_ap_settings *params); |
| |
| int wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy, |
| struct net_device *dev, |
| struct cfg80211_beacon_data *params); |
| |
| int hdd_destroy_acs_timer(struct hdd_adapter *adapter); |
| |
| QDF_STATUS wlan_hdd_config_acs(struct hdd_context *hdd_ctx, struct hdd_adapter *adapter); |
| void hdd_sap_indicate_disconnect_for_sta(struct hdd_adapter *adapter); |
| void hdd_sap_destroy_events(struct hdd_adapter *adapter); |
| #endif /* end #if !defined(WLAN_HDD_HOSTAPD_H) */ |