qcacld-3.0: Disable legacy netdev params for TDLS
Since TDLS and STA share a common netdev interface, when STA connection is made in 11a, 11b, 11g mode, netdev parameters such as TSO/checksum are disabled. If TDLS connection is formed over this Station, TSO remains disabled as STA netdev is used. This might result in loss of throughput when TDLS connection is made with 11n, 11ac, 11ax dot11mode and with wider bandwidth TDLS, this loss is more prominent. Hence, overwrite the netdev params to enable TSO when TDLS connection is formed in 11ax, 11ac, 11n mode if the station is in 11a, 11b, 11g mode. Also, disable the TSO params when TDLS tearsdown when STA is in 11a, 11b, 11g mode. Change-Id: I80deaef40d70030211e75a63e1339b1407627b52 CRs-Fixed: 3245258
Esse commit está contido em:

commit de
Madan Koyyalamudi

pai
1e564784d5
commit
33f9595701
@@ -40,11 +40,23 @@
|
||||
#include "nan_ucfg_api.h"
|
||||
#include "wlan_mlme_main.h"
|
||||
|
||||
static uint16_t tdls_get_connected_peer(struct tdls_soc_priv_obj *soc_obj)
|
||||
static uint16_t tdls_get_connected_peer_count(struct tdls_soc_priv_obj *soc_obj)
|
||||
{
|
||||
return soc_obj->connected_peer_count;
|
||||
}
|
||||
|
||||
uint16_t tdls_get_connected_peer_count_from_vdev(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
struct tdls_soc_priv_obj *soc_obj;
|
||||
|
||||
soc_obj = wlan_vdev_get_tdls_soc_obj(vdev);
|
||||
|
||||
if (!soc_obj)
|
||||
return 0;
|
||||
|
||||
return tdls_get_connected_peer_count(soc_obj);
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_11AX
|
||||
static
|
||||
uint8_t tdls_get_mlme_ch_power(struct vdev_mlme_obj *mlme_obj, qdf_freq_t freq)
|
||||
@@ -196,6 +208,10 @@ void tdls_decrement_peer_count(struct wlan_objmgr_vdev *vdev,
|
||||
|
||||
tdls_debug("Connected peer count %d", soc_obj->connected_peer_count);
|
||||
|
||||
/* Need to update osif params when last peer gets disconnected */
|
||||
if (!soc_obj->connected_peer_count &&
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_disconn_update)
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_disconn_update(vdev);
|
||||
tdls_update_6g_power(vdev, soc_obj, false);
|
||||
}
|
||||
|
||||
@@ -637,7 +653,7 @@ static QDF_STATUS tdls_activate_add_peer(struct tdls_add_peer_request *req)
|
||||
}
|
||||
|
||||
/* first to check if we reached to maximum supported TDLS peer. */
|
||||
curr_tdls_peers = tdls_get_connected_peer(soc_obj);
|
||||
curr_tdls_peers = tdls_get_connected_peer_count(soc_obj);
|
||||
if (soc_obj->max_num_tdls_sta <= curr_tdls_peers) {
|
||||
tdls_err(QDF_MAC_ADDR_FMT
|
||||
" Request declined. Current %d, Max allowed %d.",
|
||||
@@ -1099,7 +1115,7 @@ tdls_activate_update_peer(struct tdls_update_peer_request *req)
|
||||
goto setlink;
|
||||
}
|
||||
|
||||
curr_tdls_peers = tdls_get_connected_peer(soc_obj);
|
||||
curr_tdls_peers = tdls_get_connected_peer_count(soc_obj);
|
||||
if (soc_obj->max_num_tdls_sta <= curr_tdls_peers) {
|
||||
tdls_err(QDF_MAC_ADDR_FMT
|
||||
" Request declined. Current: %d, Max allowed: %d.",
|
||||
@@ -1811,6 +1827,10 @@ QDF_STATUS tdls_process_enable_link(struct tdls_oper_request *req)
|
||||
|
||||
tdls_update_6g_power(vdev, soc_obj, true);
|
||||
tdls_increment_peer_count(soc_obj);
|
||||
/* Need to update osif params when first peer gets connected */
|
||||
if (soc_obj->connected_peer_count == 1 &&
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_conn_update)
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_conn_update(vdev);
|
||||
feature = soc_obj->tdls_configs.tdls_feature_flags;
|
||||
|
||||
if (soc_obj->tdls_dp_vdev_update)
|
||||
|
@@ -139,6 +139,14 @@ void
|
||||
tdls_release_serialization_command(struct wlan_objmgr_vdev *vdev,
|
||||
enum wlan_serialization_cmd_type type);
|
||||
|
||||
/**
|
||||
* tdls_get_connected_peer_count_from_vdev() - Get TDLS connected peer count
|
||||
* @tdls_vdev: Pointer to vdev obj
|
||||
*
|
||||
* Return: Connected peer count
|
||||
*/
|
||||
uint16_t tdls_get_connected_peer_count_from_vdev(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
/**
|
||||
* tdls_set_cap() - set TDLS capability type
|
||||
* @tdls_vdev: tdls vdev object
|
||||
|
@@ -192,6 +192,7 @@ struct tdls_set_state_info {
|
||||
* @runtime_lock: runtime lock
|
||||
* @tdls_osif_init_cb: Callback to initialize the tdls private
|
||||
* @tdls_osif_deinit_cb: Callback to deinitialize the tdls private
|
||||
* @tdls_osif_update_cb: Callback for updating osif params
|
||||
* @fw_tdls_11ax_capablity: bool for tdls 11ax fw capability
|
||||
* @fw_tdls_6g_capability: bool for tdls 6g fw capability
|
||||
* @bss_sta_power: bss sta power
|
||||
@@ -245,6 +246,7 @@ struct tdls_soc_priv_obj {
|
||||
#endif
|
||||
tdls_vdev_init_cb tdls_osif_init_cb;
|
||||
tdls_vdev_deinit_cb tdls_osif_deinit_cb;
|
||||
struct tdls_osif_cb tdls_osif_update_cb;
|
||||
#ifdef WLAN_FEATURE_11AX
|
||||
bool fw_tdls_11ax_capability;
|
||||
bool fw_tdls_6g_capability;
|
||||
|
@@ -656,6 +656,18 @@ typedef QDF_STATUS (*tdls_vdev_init_cb)(struct wlan_objmgr_vdev *vdev);
|
||||
*/
|
||||
typedef void (*tdls_vdev_deinit_cb)(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
/**
|
||||
* tdls_osif_cb() - Callbacks for updating osif params.
|
||||
* @tdls_osif_conn_update: Update osif params when TDLS peer is connected
|
||||
* @tdls_osif_disconn_update: Update osif params when TDLS peer is disconnected
|
||||
*
|
||||
* These callbacks will be used for updating osif params.
|
||||
*/
|
||||
struct tdls_osif_cb {
|
||||
void (*tdls_osif_conn_update)(struct wlan_objmgr_vdev *vdev);
|
||||
void (*tdls_osif_disconn_update)(struct wlan_objmgr_vdev *vdev);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct tdls_start_params - tdls start params
|
||||
* @config: tdls user config
|
||||
@@ -672,6 +684,7 @@ typedef void (*tdls_vdev_deinit_cb)(struct wlan_objmgr_vdev *vdev);
|
||||
* @tdls_dp_vdev_update: update vdev flags in datapath
|
||||
* @tdls_osif_init_cb: callback to initialize the tdls priv
|
||||
* @tdls_osif_deinit_cb: callback to deinitialize the tdls priv
|
||||
* @tdls_osif_cb: callback to update osif params
|
||||
*/
|
||||
struct tdls_start_params {
|
||||
struct tdls_user_config config;
|
||||
@@ -692,6 +705,7 @@ struct tdls_start_params {
|
||||
tdls_dp_vdev_update_flags_callback tdls_dp_vdev_update;
|
||||
tdls_vdev_init_cb tdls_osif_init_cb;
|
||||
tdls_vdev_deinit_cb tdls_osif_deinit_cb;
|
||||
struct tdls_osif_cb tdls_osif_update_cb;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -390,6 +390,15 @@ QDF_STATUS ucfg_tdls_set_rssi(struct wlan_objmgr_vdev *vdev,
|
||||
*/
|
||||
void ucfg_tdls_notify_connect_failure(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_get_tdls_conn_peer_count() - This api is called to get number of
|
||||
* connected TDLS peer
|
||||
* @vdev: vdev object
|
||||
*
|
||||
* Return: tdls connected peer count
|
||||
*/
|
||||
uint16_t ucfg_get_tdls_conn_peer_count(struct wlan_objmgr_vdev *vdev);
|
||||
|
||||
/**
|
||||
* ucfg_get_tdls_vdev() - Ucfg api to get tdls specific vdev object
|
||||
* @psoc: wlan psoc object manager
|
||||
|
@@ -458,6 +458,10 @@ QDF_STATUS ucfg_tdls_update_config(struct wlan_objmgr_psoc *psoc,
|
||||
soc_obj->tdls_dp_vdev_update = req->tdls_dp_vdev_update;
|
||||
soc_obj->tdls_osif_init_cb = req->tdls_osif_init_cb;
|
||||
soc_obj->tdls_osif_deinit_cb = req->tdls_osif_deinit_cb;
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_conn_update =
|
||||
req->tdls_osif_update_cb.tdls_osif_conn_update;
|
||||
soc_obj->tdls_osif_update_cb.tdls_osif_disconn_update =
|
||||
req->tdls_osif_update_cb.tdls_osif_disconn_update;
|
||||
tdls_pm_call_backs.tdls_notify_increment_session =
|
||||
tdls_notify_increment_session;
|
||||
|
||||
@@ -1215,6 +1219,11 @@ void ucfg_tdls_notify_connect_failure(struct wlan_objmgr_psoc *psoc)
|
||||
return wlan_tdls_notify_connect_failure(psoc);
|
||||
}
|
||||
|
||||
uint16_t ucfg_get_tdls_conn_peer_count(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
return tdls_get_connected_peer_count_from_vdev(vdev);
|
||||
}
|
||||
|
||||
struct wlan_objmgr_vdev *ucfg_get_tdls_vdev(struct wlan_objmgr_psoc *psoc,
|
||||
wlan_objmgr_ref_dbgid dbg_id)
|
||||
{
|
||||
|
Referência em uma nova issue
Block a user