|
@@ -1606,7 +1606,7 @@ static int is_driver_dfs_capable(struct wiphy *wiphy,
|
|
|
int wlan_hdd_sap_cfg_dfs_override(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
struct hdd_adapter *con_sap_adapter;
|
|
|
- tsap_config_t *sap_config, *con_sap_config;
|
|
|
+ struct sap_config *sap_config, *con_sap_config;
|
|
|
int con_ch;
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
|
|
@@ -1691,7 +1691,7 @@ int wlan_hdd_sap_cfg_dfs_override(struct hdd_adapter *adapter)
|
|
|
* Return: 0 if success; -EINVAL if ACS channel list is NULL
|
|
|
*/
|
|
|
static int wlan_hdd_set_acs_ch_range(
|
|
|
- tsap_config_t *sap_cfg, enum qca_wlan_vendor_acs_hw_mode hw_mode,
|
|
|
+ struct sap_config *sap_cfg, enum qca_wlan_vendor_acs_hw_mode hw_mode,
|
|
|
bool ht_enabled, bool vht_enabled)
|
|
|
{
|
|
|
int i;
|
|
@@ -1743,7 +1743,7 @@ static int wlan_hdd_set_acs_ch_range(
|
|
|
static void wlan_hdd_cfg80211_start_pending_acs(struct work_struct *work);
|
|
|
|
|
|
|
|
|
-static void hdd_update_acs_channel_list(tsap_config_t *sap_config,
|
|
|
+static void hdd_update_acs_channel_list(struct sap_config *sap_config,
|
|
|
enum band_info band)
|
|
|
{
|
|
|
int i, temp_count = 0;
|
|
@@ -1783,7 +1783,7 @@ int wlan_hdd_cfg80211_start_acs(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
|
|
|
struct hdd_context *hdd_ctx;
|
|
|
- tsap_config_t *sap_config;
|
|
|
+ struct sap_config *sap_config;
|
|
|
sap_event_cb acs_event_callback;
|
|
|
uint8_t mcc_to_scc_switch = 0;
|
|
|
int status;
|
|
@@ -1892,7 +1892,7 @@ int wlan_hdd_cfg80211_start_acs(struct hdd_adapter *adapter)
|
|
|
*/
|
|
|
static void hdd_update_vendor_pcl_list(struct hdd_context *hdd_ctx,
|
|
|
struct hdd_vendor_acs_chan_params *acs_chan_params,
|
|
|
- tsap_config_t *sap_config)
|
|
|
+ struct sap_config *sap_config)
|
|
|
{
|
|
|
int i, j;
|
|
|
|
|
@@ -1935,7 +1935,7 @@ static int hdd_update_reg_chan_info(struct hdd_adapter *adapter,
|
|
|
struct ch_params ch_params = {0};
|
|
|
uint8_t bw_offset = 0, chan = 0;
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
- tsap_config_t *sap_config = &adapter->session.ap.sap_config;
|
|
|
+ struct sap_config *sap_config = &adapter->session.ap.sap_config;
|
|
|
mac_handle_t mac_handle;
|
|
|
uint8_t sub_20_chan_width = 0;
|
|
|
QDF_STATUS status;
|
|
@@ -2030,7 +2030,7 @@ static int hdd_update_reg_chan_info(struct hdd_adapter *adapter,
|
|
|
*/
|
|
|
static int32_t
|
|
|
hdd_cfg80211_update_channel_info(struct sk_buff *skb,
|
|
|
- tsap_config_t *sap_config, int idx)
|
|
|
+ struct sap_config *sap_config, int idx)
|
|
|
{
|
|
|
struct nlattr *nla_attr, *channel;
|
|
|
struct hdd_channel_info *icv;
|
|
@@ -2137,7 +2137,7 @@ fail:
|
|
|
}
|
|
|
|
|
|
static void hdd_get_scan_band(struct hdd_context *hdd_ctx,
|
|
|
- tsap_config_t *sap_config,
|
|
|
+ struct sap_config *sap_config,
|
|
|
enum band_info *band)
|
|
|
{
|
|
|
|
|
@@ -2186,7 +2186,7 @@ static int wlan_hdd_sap_get_valid_channellist(struct hdd_adapter *adapter,
|
|
|
uint8_t *channel_list,
|
|
|
enum band_info band)
|
|
|
{
|
|
|
- tsap_config_t *sap_config;
|
|
|
+ struct sap_config *sap_config;
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
uint8_t tmp_chan_list[QDF_MAX_NUM_CHAN] = {0};
|
|
|
uint32_t chan_count;
|
|
@@ -2237,7 +2237,7 @@ int hdd_cfg80211_update_acs_config(struct hdd_adapter *adapter,
|
|
|
uint8_t reason)
|
|
|
{
|
|
|
struct sk_buff *skb;
|
|
|
- tsap_config_t *sap_config;
|
|
|
+ struct sap_config *sap_config;
|
|
|
uint32_t channel_count = 0, status = -EINVAL;
|
|
|
uint8_t channel_list[QDF_MAX_NUM_CHAN] = {0};
|
|
|
uint32_t freq_list[QDF_MAX_NUM_CHAN] = {0};
|
|
@@ -2521,7 +2521,7 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy,
|
|
|
struct net_device *ndev = wdev->netdev;
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(ndev);
|
|
|
struct hdd_context *hdd_ctx = wiphy_priv(wiphy);
|
|
|
- tsap_config_t *sap_config;
|
|
|
+ struct sap_config *sap_config;
|
|
|
struct sk_buff *temp_skbuff;
|
|
|
int ret, i, ch_cnt = 0;
|
|
|
struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_ACS_MAX + 1];
|
|
@@ -2997,7 +2997,8 @@ static void wlan_hdd_cfg80211_start_pending_acs(struct work_struct *work)
|
|
|
void wlan_hdd_cfg80211_acs_ch_select_evt(struct hdd_adapter *adapter)
|
|
|
{
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
- tsap_config_t *sap_cfg = &(WLAN_HDD_GET_AP_CTX_PTR(adapter))->sap_config;
|
|
|
+ struct sap_config *sap_cfg =
|
|
|
+ &(WLAN_HDD_GET_AP_CTX_PTR(adapter))->sap_config;
|
|
|
struct sk_buff *vendor_event;
|
|
|
int ret_val;
|
|
|
struct hdd_adapter *con_sap_adapter;
|
|
@@ -9848,7 +9849,7 @@ static QDF_STATUS wlan_hdd_validate_acs_channel(struct hdd_adapter *adapter,
|
|
|
}
|
|
|
|
|
|
static void hdd_update_acs_sap_config(struct hdd_context *hdd_ctx,
|
|
|
- tsap_config_t *sap_config,
|
|
|
+ struct sap_config *sap_config,
|
|
|
struct hdd_vendor_chan_info *channel_list)
|
|
|
{
|
|
|
uint8_t ch_width;
|
|
@@ -9890,7 +9891,7 @@ static int hdd_update_acs_channel(struct hdd_adapter *adapter, uint8_t reason,
|
|
|
uint8_t channel_cnt,
|
|
|
struct hdd_vendor_chan_info *channel_list)
|
|
|
{
|
|
|
- tsap_config_t *sap_config;
|
|
|
+ struct sap_config *sap_config;
|
|
|
struct hdd_ap_ctx *hdd_ap_ctx;
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
|
@@ -20443,7 +20444,7 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy,
|
|
|
int i;
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
struct hdd_hostapd_state *hostapd_state;
|
|
|
- tsap_config_t *config;
|
|
|
+ struct sap_config *config;
|
|
|
struct hdd_context *hdd_ctx;
|
|
|
int status;
|
|
|
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
|