Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 982e25d1 authored by Yu Ouyang's avatar Yu Ouyang Committed by Michael Bestas
Browse files

qcacld-3.0: Add time slice duty cycle in wifi_interface_info

Android S VTS test case GetLinkLayerStats_1_5 need get interface time
slice duty cycle info. VTS will get it over vendor command
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET.

So, we need put time slice duty cycle percentage in structure
wifi_interface_info.

Change-Id: Iff644b4b1ed6dd34badc2008d2957c98e0207aa6
CRs-Fixed: 3040005
parent 409fb00e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -581,7 +581,10 @@ static bool put_wifi_interface_info(struct wifi_interface_info *stats,
		    REG_ALPHA2_LEN + 1, stats->apCountryStr) ||
	    nla_put(vendor_event,
		    QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR,
		    REG_ALPHA2_LEN + 1, stats->countryStr)) {
		    REG_ALPHA2_LEN + 1, stats->countryStr) ||
	    nla_put_u32(vendor_event,
			QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE,
			stats->time_slice_duty_cycle)) {
		hdd_err("QCA_WLAN_VENDOR_ATTR put fail");
		return false;
	}
+1 −0
Original line number Diff line number Diff line
@@ -3496,6 +3496,7 @@ struct wifi_interface_info {
	uint8_t apCountryStr[REG_ALPHA2_LEN + 1];
	/* country string for this association */
	uint8_t countryStr[REG_ALPHA2_LEN + 1];
	uint8_t time_slice_duty_cycle;
};

/**
+2 −0
Original line number Diff line number Diff line
@@ -2744,6 +2744,8 @@ int wma_unified_link_iface_stats_event_handler(void *handle,

	/* Copy roaming state */
	iface_stat->info.roaming = link_stats->roam_state;
	/* Copy time slicing duty cycle */
	iface_stat->info.time_slice_duty_cycle = 100;

	iface_ac_stats = &iface_stat->ac_stats[0];
	for (count = 0; count < link_stats->num_ac; count++) {