qcacld-3.0: Do not notify supplicant of 5GHz LTE avoid channel range

Do not notify supplicant of 5G LTE avoid channel range if ini
restart_beaconing_on_chan_avoid_event is set to CH_AVOID_RULE_RESTART_24G_ONLY.

Change-Id: Ide862882f4cf871688880653ec5c746e4c2dce38
CRs-Fixed: 2078612
Cette révision appartient à :
Tushnim Bhattacharyya
2017-07-18 15:43:09 -07:00
révisé par snandini
Parent cfc8641400
révision 3efa49a78b
2 fichiers modifiés avec 10 ajouts et 5 suppressions

Voir le fichier

@@ -9285,7 +9285,7 @@ enum dot11p_mode {
* restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
* away from active LTE channels
* @Min: 0
* @Max: 1
* @Max: 2
* @Default: 1
*
* This ini is used to control the beaconing entity (SAP/GO) to move away from
@@ -9294,6 +9294,8 @@ enum dot11p_mode {
* from active LTE channels
* restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
* active LTE channels
* restart_beaconing_on_chan_avoid_event=2: Allow beaconing entity move from
* 2.4G active LTE channels only
*
* Related: None
*
@@ -9304,9 +9306,9 @@ enum dot11p_mode {
* </ini>
*/
#define CFG_RESTART_BEACONING_ON_CH_AVOID_NAME "restart_beaconing_on_chan_avoid_event"
#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (0)
#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (1)
#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (1)
#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (CH_AVOID_RULE_DO_NOT_RESTART)
#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (CH_AVOID_RULE_RESTART_24G_ONLY)
#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (CH_AVOID_RULE_RESTART)
/*
* This parameter will avoid updating ap_sta_inactivity from hostapd.conf
* file. If a station does not send anything in ap_max_inactivity seconds, an
@@ -12417,7 +12419,8 @@ struct hdd_config {
enum hdd_wext_control standard_wext_control;
enum hdd_wext_control private_wext_control;
bool sap_internal_restart;
bool restart_beaconing_on_chan_avoid_event;
enum restart_beaconing_on_ch_avoid_rule
restart_beaconing_on_chan_avoid_event;
uint8_t is_per_roam_enabled;
uint32_t per_roam_high_rate_threshold;
uint32_t per_roam_low_rate_threshold;

Voir le fichier

@@ -220,6 +220,8 @@ static void reg_program_config_vars(struct hdd_context *hdd_ctx,
config_vars->indoor_chan_enabled =
hdd_ctx->config->indoor_channel_support;
config_vars->band_capability = hdd_ctx->config->nBandCapability;
config_vars->restart_beaconing = hdd_ctx->config->
restart_beaconing_on_chan_avoid_event;
}