Commit Graph

4046 Commits

Author SHA1 Message Date
Jeff Johnson
b135c66521 qcacld-3.0: Rate limit logs in hdd_check_wext_control()
During performance testing system stability issues were observed which
were attributed to excess logging in hdd_check_wext_control(). In
order to avoid such issue, rate limit those messages.

Change-Id: Ia0fa6f8a3fd7150ab3b8f2417bdb5087241c51e3
CRs-Fixed: 2332711
2018-10-13 11:50:16 -07:00
Alok Kumar
ce2c29a152 qcacld-3.0: Avoid excessive console logging from NUD stats cb
Avoid excessive console logging from NUD stats cb which
can lead to watchdog error.

Change-Id: Ida3c732fd5fe4c9ea0f9e08df2bf1656023bb810
CRs-Fixed: 2332618
2018-10-13 01:38:26 -07:00
Abhinav Kumar
06b9a12134 qcacld-3.0: Add MLME INI of EDCA parameters
Add the following EDCA INI:
1. CFG_ENABLE_EDCA_INI_NAME
2. CFG_EDCA_VO_CWMIN_VALUE_NAME
3. CFG_EDCA_VO_CWMAX_VALUE_NAME
4. CFG_EDCA_VO_AIFS_VALUE_NAME
5. CFG_EDCA_VI_CWMIN_VALUE_NAME
6. CFG_EDCA_VI_CWMAX_VALUE_NAME
7. CFG_EDCA_VI_AIFS_VALUE_NAME
8. CFG_EDCA_BK_CWMIN_VALUE_NAME
9. CFG_EDCA_BK_CWMAX_VALUE_NAME
10. CFG_EDCA_BK_AIFS_VALUE_NAME
11. CFG_EDCA_BE_CWMIN_VALUE_NAME
12. CFG_EDCA_BE_CWMAX_VALUE_NAME
13. CFG_EDCA_BE_AIFS_VALUE_NAME

Change-Id: I09ff58923d4c73fafce315ed2cea6e6e6a8480bb
CRs-Fixed: 2316365
2018-10-12 19:16:56 -07:00
Dustin Brown
2ab5a97415 qcacld-3.0: Lightly refactor __wlan_hdd_cfg80211_change_iface
__wlan_hdd_cfg80211_change_iface() has a number of obvious style issues.
Lightly refactor __wlan_hdd_cfg80211_change_iface() to address the low
hanging fruit.

Change-Id: Ib2efa7405e986e73a5c5b6fc7e5509eeebd2e6f3
CRs-Fixed: 2330973
2018-10-12 15:17:53 -07:00
Jeff Johnson
9de31c0bdb qcacld-3.0: Fix power units in wlan_hdd_cfg80211_set_txpower()
wlan_hdd_cfg80211_set_txpower() currently expects the input power to
be in units of dBm. However cfg80211 specifies the set_tx_power()
method will pass the power in mBm, and that to get dBm the driver
should use MBM_TO_DBM(). The userspace tool "iw" also expects the
power to be in mBm.

In order to comply with the definition of cfg80211, change the
implementation of wlan_hdd_cfg80211_set_txpower() to expect the power
in mBm and use MBM_TO_DBM() to convert the power to dBm. But for
backward compatibility with userspace entities which are expecting the
current implementation, if the converted power is 0 then assume the
input power is already in dBm and use it without conversion.

Change-Id: I7c64f7ac14249a307357c91f8bea4dad8d59ff28
CRs-Fixed: 2331003
2018-10-12 15:17:49 -07:00
Vignesh Viswanathan
865daaaf85 qcacld-3.0: Reduce the command timeout for Start/Stop BSS command to 10s
Currently the command timeout value in serialization for start_bss
and stop_bss commands for SAP are set to 30 seconds which is too high.

Reduce the command timeout value for SAP start_bss and stop_bss
commands in serialization to 10 seconds.

Change-Id: I1bcfe13de92a703ec55445b344a502f7843bbed8
CRs-Fixed: 2331830
2018-10-12 11:49:39 -07:00
Manjunathappa Prakash
028d471e7b qcacld-3.0: SAP Rx: get sta_id for dhcp packet only
Check for dhcp packet type before processing on packet sta_id.
This reduces per packet mem_copy and mem_cmp instructions for
sap Rx.

Change-Id: I4a2732ff4d9e3fa31aace25cc824f26b0c339b52
CRs-Fixed: 2331420
2018-10-11 15:40:28 -07:00
Ashish Kumar Dhanotiya
b0629626ee qcacld-3.0: NULL pointer access in start acs api
There is no sanity check for hdd context and sap config in
start acs api which may lead to NULL pointer access.

To avoid this issue, validate hdd context and sap config
before accessing these pointers.

Change-Id: I0a3f6a91a6bc5a517c035c9e7d706e66aea62fd4
CRs-Fixed: 2331412
2018-10-11 12:22:07 -07:00
Dundi Raviteja
561e3ed2ae qcacld-3.0: Possible OOB access in wlan_hdd_cfg80211_start_bss()
Currently in function wlan_hdd_cfg80211_start_bss(), copying
supported rates and extended rates from information element pointer
without checking for array bounds which may cause OOB access.

To address this issue, add length checks before copying supported
rates and extended rates.

Change-Id: Ic6363e97bb3498a5dd23bc5e5f9b9f3ce093509d
CRs-Fixed: 2312995
2018-10-11 05:35:22 -07:00
Paul Zhang
c2ad86c575 qcacld-3.0: Change default value of wlm_latency_flags_ultralow
Disable scan by default if utral low level is setting.

Change-Id: Ibe183afad192d63f3ffe7885a297fcff5d87ffda
CRs-Fixed: 2318983
2018-10-11 05:35:18 -07:00
Rajeev Kumar
64beb9fcc9 qcacld-3.0: Move wmi_stop from pld uevent to wma shutdown notifier
PLD FW down uevent is asynchronous which races against all critical
driver transition events like probe, remove, shutdown, reinit and
hence move wmi_stop to wma shutdown notifier callbakk such that its
protected against all critical driver transition events.

Change-Id: I91046efeab8bc13b9f5c37d5a4d02b66c63e35a9
CRs-Fixed: 2330980
2018-10-10 18:20:36 -07:00
Pragaspathi Thilagaraj
bc5a34bba2 qcacld-3.0: Cancel iface_idle_work before wma_wmi_stop
When interface change timer expires, wma_wmi_service_close() is
called from hdd_iface_change_callback()->hdd_wlan_stop_modules()
->cds_close(). wmi_handle is made null here. At the same time,
if there is a modem reboot, host will receive early
indication from FW. Due to this, icnss driver sent
ICNSS_UEVENT_FW_DOWN event to host and it calls wmi_stop() again
from icnss_call_driver_uevent()->pld_snoc_uevent()->
wlan_hdd_pld_uevent() -> wlan_hdd_set_the_pld_uevent()->
wma_wmi_stop() -> wmi_stop(). As wmi_handle which was marked
null during wlan stop modules, this causes potential NULL
pointer dereference.

Flush iface_idle_work before wma_wmi_stop and add NULL check
before accessing wmi_handle.

Change-Id: I1bfa8ab7329040c0b5ba989c0d7de7bf7228dd35
CRs-Fixed: 2328575
2018-10-10 07:26:50 -07:00
Jeff Johnson
fed9a730dd qcacld-3.0: Refine the extscan get capabilities logic
Make the following updates to the extscan get capabilities logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: I9e57c86a3da0924af01d82d626b61c28f7d520bf
CRs-Fixed: 2330211
2018-10-09 23:19:43 -07:00
Alok Kumar
62bf738e15 qcacld-3.0: Address the error path during WLAN suspend
In __wlan_hdd_cfg80211_suspend_wlan(), suspend process is bailed out
if hdd_suspend_wlan() < 0 due to which RX thread waits for completion
of ol_resume_rx_event.

Do completion of ol_resume_rx_event in __wlan_hdd_cfg80211_suspend_wlan
for error path to resume RX thread.

Change-Id: I8bf056f82d80e063b2e32a1a6573d7a36ced67dc
CRs-Fixed: 2327238
2018-10-09 21:35:40 -07:00
Ashish Kumar Dhanotiya
6ff329eacb qcacld-3.0: De-init adapters before stop modules
In con_mode handler, adapters are getting deinitialized
while cleaning up present mode which is happening after
stop modules. In stop modules driver checks for memory
leak which results in mem leak detection for the adapters
which are not freed yet.

To address this issue, move the deinitialization of the
adapters from clean up present mode to stop present mode, which
happens before stop modules.

Change-Id: I9cda456feb2b0c199f5c8d4debee21f0e07c47fb
CRs-Fixed: 2326340
2018-10-09 19:58:34 -07:00
Vignesh Viswanathan
a1f3a1a31b qcacld-3.0: Update multiple generic INI items using MLME CFG [Part 2]
Replace usage of the below INI Items using MLME CFG instead of HDD config.

gEnableSelfRecovery
gSapDot11mc
gEnableFatalEvent
gSub20ChannelWidth
goptimize_chan_avoid_event
fw_timeout_crash
DroppedPktDisconnectTh
gItoRepeatCount

Change-Id: Ib46b9fc6c4bbc5ede0be7a5cb88064808962839d
CRs-Fixed: 2327611
2018-10-09 04:05:07 -07:00
Jeff Johnson
2ba600960c qcacld-3.0: Refine the extscan get cached results logic
Make the following updates to the extscan get cached results logic:
1) Exclusively use the Unified WMI data structures.
2) Update the HDD<=>SME interface to enforce the contract that SME
   must not make any assumptions about the buffers provided by HDD.

Change-Id: I4144aa4cdb9c6d3ddaae30eedaec3096abf95857
CRs-Fixed: 2329405
2018-10-09 00:03:37 -07:00
chenguo
dc9f0ec570 qcacld-3.0: Add pause and unpause statistics for new netif actions
Add pause and unpause statistics for below new netif actions:
	WLAN_NETIF_VO_QUEUE_ON
	WLAN_NETIF_VO_QUEUE_OFF
	WLAN_NETIF_VI_QUEUE_ON
	WLAN_NETIF_VI_QUEUE_OFF
	WLAN_NETIF_BE_BK_QUEUE_OFF

This change is part of FR49094

Change-Id: I56452711b0e4c2176ed8ee398ea68fa5e60012ba
CRs-Fixed: 2307945
2018-10-08 22:20:08 -07:00
Karthik Kantamneni
e3bbd7fbb4 qcacld-3.0: Add MLME CFG items of rates [PART 2]
Add MLME CFG items of rates based on converged cfg component

Change-Id: If823a2b19e4b828a3f079d2b032067dd5b5ca196
CRs-Fixed: 2322410
2018-10-08 05:26:35 -07:00
Abhinav Kumar
b074f2f7fc qcacld-3.0: Refactor MLME CFG items and APIs for VHT
VHT Part3: Add the basic infra for MLME CFG items and the APIs
to be used from other components for VHT.

Change-Id: I8cd30439d7ac3de7b550aa5042353cf30e04cbda
CRs-Fixed: 2322304
2018-10-07 13:58:54 -07:00
jitiphil
4c256a34d6 qcacld-3.0: Add IPA CFG items and APIs
Add IPA related INI config to IPA component.

Change-Id: I5bea63b83ddac62504ef38019aa4034c4e18bca7
CRs-Fixed: 2320921
2018-10-05 19:58:00 -07:00
jitiphil
869b9f73d9 qcacld-3.0: Relocate HDD DP ini items
Relocate below HDD DP ini items as per converged infrastructure.

1. TxFlowLowWaterMark
2. TxFlowHighWaterMarkOffset
3. TxFlowMaxQueueDepth
4. TxLbwFlowLowWaterMark
5. TxLbwFlowHighWaterMarkOffset
6. TxLbwFlowMaxQueueDepth
7. TxHbwFlowLowWaterMark
8. TxHbwFlowHighWaterMarkOffset
9. TxHbwFlowMaxQueueDepth
10. gBusBandwidthHighThreshold
11. gBusBandwidthMediumThreshold
12. gBusBandwidthLowThreshold
13. gBusBandwidthComputeInterval
14. gTcpLimitOutputEnable
15. gTcpAdvWinScaleEnable
16. gTcpDelAckEnable
17. gTcpDelAckThresholdHigh
18. gTcpDelAckThresholdLow
19. gTcpDelAckTimerCount
20. gTcpTxHighTputThreshold
21. gEnableTxOrphan
22. rpsRxQueueCpuMapList
23. RX_THREAD_CPU_AFFINITY_MASK
24. NAPI_CPU_AFFINITY_MASK
25. rx_mode

Change-Id: Ib7309fc78842af4bae4d8f705edecce4499a17df
CRs-Fixed: 2323191
2018-10-05 19:57:56 -07:00
gaurank kathpalia
ae52c982e4 qcacld-3.0: Fix bss scoring params
Currently the driver calculates the nss score
based upon the max capability of the AP, and not the
hw_mde config which would be there after connection
for example, the driver calculates the score for a
2x2 11n AP, and 1x1 VHT (11ac) AP, it connects to the
11n AP in 1x1 mode, if a concurrent connection is
present, which affects throughput

Fix is to check whether the current AP channel results
in DBS or not, if yes then change the NSS to 1 instead of
2

Change-Id: I902393be5ea9cf88def9da6b3458bb6048655ce7
CRs-Fixed: 2288362
2018-10-05 17:39:34 -07:00
Dundi Raviteja
9ab4e7b4f1 qcacld-3.0: Relocate gProbeReqOUIs ini to FW offload component
Relocate gProbeReqOUIs ini parameter to FW offload component.

Change-Id: Ie3764cfaf3625911a14cc43fb7eaab415f54ece1
CRs-Fixed: 2324746
2018-10-05 11:37:40 +05:30
Arif Hussain
88d1fddd0b qcacld-3.0: Refactor CFG_ENABLE_DFS_MASTER_CAPABILITY cfg
Refactor CFG_ENABLE_DFS_MASTER_CAPABILITY cfg item.

Change-Id: I19b52c6848bd04feca4213aad64138d5c55b9a1f
CRs-Fixed: 2327917
2018-10-04 22:52:51 -07:00
Dundi Raviteja
c5a9556365 qcacld-3.0: Get schedule scan params using cfg_get
Get schedule scan param values using cfg_get

Change-Id: I62543f87dceeb1698f912a7bb65d1850fc3d541e
CRs-Fixed: 2324157
2018-10-04 22:52:47 -07:00
Dundi Raviteja
8e33828530 qcacld-3.0: Relocate HDD ini items
Relocate below HDD ini items as per converged infrastructure.
1. private_wext_control
2. gInterfaceChangeWait
3. gTimerMultiplier
4. g_bug_on_reinit_failure
5. gEnableDumpCollect
6. gMulticastHostFwMsgs
7. wlanLoggingEnable
8. wlanLoggingToConsole
9. gWlanAutoShutdown
10. gEnablefwprint
11. gEnablefwlog
12. gEnablePacketLog

Change-Id: I913bbbcfd94eba609836afdcc134c3ccd7a8f46b
CRs-Fixed: 2322112
2018-10-04 22:52:43 -07:00
Paul Zhang
02526cd6ce qcacld-3.0: Adjust calling ucfg_reg_program_default_cc
With commit I4ec1268eb491fec04a78b90e51c6e616d95e019e,
the function wlan_reg_get_channel_list_with_power sets
num20MHzChannelsFound to 0 because the current channel
list has not initialized yet for regulatory non-offload
case.

Change-Id: I6a055534f2b9a763a8cbba8fef3062ed6ea424cd
CRs-Fixed: 2319332
2018-10-04 18:21:31 -07:00
Dustin Brown
728d65a2de qcacld-3.0: Call close_adapter from close_all_adapters
hdd_close_all_adapters() does not call hdd_close_adapter(), which has
lead to a divergence between the logic contained within. Update
hdd_close_all_adapters() and hdd_close_adapter() to leverage shared
logic to bring them back in sync, and prevent them from diverging again
in the future.

Change-Id: Ic2fe0908a48927a6fc403ca0f4c21275659908b3
CRs-Fixed: 2326433
2018-10-04 14:05:28 -07:00
Dundi Raviteja
f99ce0933b qcacld-3.0: Relocate gEnableDebugLog ini to mlme component
Relocate gEnableDebugLog ini parameter to mlme component.

Change-Id: I5e021095c0acd65af47fb0dd3325200054888412
CRs-Fixed: 2324488
2018-10-04 08:13:13 -07:00
jitiphil
0e3b592aed qcacld-3.0: Handle FW rejuvenate scenario
Upon driver reinitialize after a FW rejuvenate,
data packets are not going through IPA path.

Check for FW rejuvenate scenario during driver
recovery and send appropriate message to IPA
driver.

Change-Id: I8c1d7ba78227684cd5653a5927aa4d4c2ce5d354
Crs-Fixed: 2287293
2018-10-04 08:13:09 -07:00
Vignesh Viswanathan
a851d75505 qcacld-3.0: Update multiple generic INI items using MLME CFG [Part 1]
Replace usage of the below INI Items using MLME CFG instead of HDD config.

gPreventLinkDown
gSelect5GHzMargin
gEnableMemDeepSleep
gEnableCckTxFirOverride
gEnableForceTargetAssert
gEnableLpassSupport

Change-Id: Ib89272c7898db8d0c70a60640e00ca9364a9db74
CRs-Fixed: 2327025
2018-10-04 06:19:29 -07:00
Vignesh Viswanathan
f97cc11a70 qcacld-3.0: Update band_capability INI usage with MLME CFG
Replace all usage of band_capability INI from HDD config to MLME CFG

Change-Id: I406a8fb9965fe98a47cc6309d31f5bced529577b
CRs-Fixed: 2327023
2018-10-04 06:19:24 -07:00
Sourav Mohapatra
0f3b857e8c qcacld-3.0: Add FW offload INI items (2)
Add the following fw param ini items to the fw offload component

CFG_ENABLE_SMART_CHAINMASK - gEnableSmartChainmask
CFG_ENABLE_FW_RTS_PROFILE - gEnableRTSProfiles
CFG_ENABLE_FW_DEBUG_LOG_LEVEL - gFwDebugLogLevel
CFG_ENABLE_FW_LOG_TYPE - gFwDebugLogType
CFG_RA_FILTER_ENABLE - gRAFilterEnable
CFG_SET_TSF_GPIO_PIN - gtsf_gpio_pin
CFG_DHCP_SERVER_OFFLOAD_SUPPORT - gEnableDeauthToDisassocMap
CFG_DHCP_SERVER_OFFLOAD_NUM_CLIENT - gDHCPMaxNumClients

Change-Id: I296e095cf2a7b83856e1ab777c7dbdcc005ee96a
CRs-Fixed: 2316269
2018-10-04 03:36:45 -07:00
Alok Kumar
b027702ffe qcacld-3.0: Remove excessive logging during NUD Tracking
Remove excessive logging during NUD Tracking in soft_irq context.

Change-Id: I2dd56ee6356bdcabf3e54facf378699d0d842cee
CRs-Fixed: 2326807
2018-10-04 01:51:49 -07:00
Abhinav Kumar
18b45cd8f3 qcacld-3.0: ADD MLME INI items of WMM AC_VO
Add the following WMM AC VO ini configs to MLME cfg:
1. CFG_QOS_WMM_INFRA_DIR_AC_VO_NAME
2. CFG_QOS_WMM_INFRA_NOM_MSDU_SIZE_AC_VO_NAME
3. CFG_QOS_WMM_INFRA_MEAN_DATA_RATE_AC_VO_NAME
4. CFG_QOS_WMM_INFRA_MIN_PHY_RATE_AC_VO_NAME
5. CFG_QOS_WMM_INFRA_SBA_AC_VO_NAME
6. CFG_QOS_WMM_INFRA_UAPSD_VO_SRV_INTV_NAME
7. CFG_QOS_WMM_INFRA_UAPSD_VO_SUS_INTV_NAME

Introduce the basic infra APIs related to these configs
from mlme.

Change-Id: I402ff46aad528d7c4bbaa794b6fba498439f8e97
CRs-Fixed: 2327048
2018-10-03 23:58:00 -07:00
Vignesh Viswanathan
7db3b04cd9 qcacld-3.0: Add MLME Generic CFG Items
Add multiple general INI Items to the MLME CFG Component.

Change-Id: I0d5368ec82c8b19e477e80c71dd8d4524a9726b4
CRs-Fixed: 2326704
2018-10-03 20:24:12 -07:00
Manjunathappa Prakash
f1e2d4aeef qcacld-3.0: Remove per packet debug log hdd_inspect_dhcp_packet
SAP Rx per packet log flooding the cnss_diag log.

Change-Id: I07e954f5e6361c5a1b63e70dd76634bbb8842bc9
CRs-Fixed: 2326505
2018-10-03 16:05:24 -07:00
Sourav Mohapatra
d9387d8a67 qcacld-3.0: Add FW offload INI items (1)
Relocate the following ini items to the FW offload component.

CFG_ENABLE_ANI - gEnableANI
CFG_SET_RTS_FOR_SIFS_BURSTING - gSetRTSForSIFSBursting
CFG_MAX_MPDUS_IN_AMPDU - gMaxMPDUsInAMPDU
CFG_ARP_AC_CATEGORY - arp_ac_category
CFG_ENABLE_PHY_REG - gEnableFastPwrTransition
CFG_UPPER_BRSSI_THRESH - gUpperBrssiThresh
CFG_LOWER_BRSSI_THRESH - gLowerBrssiThresh
CFG_DTIM_1CHRX_ENABLE - gDtim1ChRxEnable
CFG_ENABLE_COEX_ALT_CHAINMASK - gEnableAlternativeChainmask

Change-Id: I5046edec1a668e198ed4fcc997a0d24affe342ea
CRs-Fixed: 2312897
2018-10-03 11:47:57 -07:00
Abhinav Kumar
c1c266b7e7 qcacld-3.0: Add MLME CFG items and APIs for VHT
Add the basic infra for MLME CFG items and the APIs to be used from
other components for VHT - Part-1.

Change-Id: Ie74bfd42ed3d34cc218f20ee3f9d81dc6af02172
CRs-Fixed: 2322300
2018-10-03 07:00:22 -07:00
Alok Kumar
5011ee6eb3 qcacld-3.0: Stop bus_bw timer for eSAP_STOP_BSS_EVENT
Driver unload called as part of "rmmod" which reports bug_on
in hdd_bus_bandwidth_deinit as bus_bw timer still running.
Bus_bw timer is not stopped when rmmod is issued if SAP is
enabled and any STA is connected to SAP.

Stop the bus_bw timer during unload for eSAP_STOP_BSS_EVENT

Change-Id: I0ed8309f25b85ebf8ca1e115cbd7aa1c931571ff
CRs-Fixed: 2323641
2018-10-03 00:29:16 -07:00
Rajeev Kumar
3872a5bcc5 qcacld-3.0: Rate limit error log in nan and ndp request handler
Rate limit error log in nan and ndp request handler to avoid
excessive console logging.

Change-Id: I9e9bb7185a77533b03e8a17d64c17371770b9b52
CRs-Fixed: 2326275
2018-10-02 19:03:23 -07:00
Arif Hussain
43e09718aa qcacld-3.0: Refactor TIMEOUT cfgs
Refactor following cfg items
CFG_AUTH_FAILURE_TIMEOUT
CFG_AUTH_RSP_TIMEOUT
CFG_ASSOC_FAILURE_TIMEOUT
CFG_REASSOC_FAILURE_TIMEOUT
CFG_PROBE_AFTER_HB_FAIL_TIMEOUT
CFG_OLBC_DETECT_TIMEOUT
CFG_ADDTS_RSP_TIMEOUT
CFG_HEART_BEAT_THRESHOLD
CFG_AP_KEEP_ALIVE_TIMEOUT
CFG_AP_LINK_MONITOR_TIMEOUT
CFG_PS_DATA_INACTIVITY_TIMEOUT

Change-Id: I616b1671809c377d6ea738c899b31ec0d8f5adfc
CRs-Fixed: 2313427
2018-10-02 17:19:09 -07:00
Harprit Chhabada
1eeeb8dd85 qcacld-3.0: Add ACS CFG/INI items to MLME component
Add following CFG items to mlme component

1.CFG_ACS_WITH_MORE_PARAM_NAME
2.CFG_AUTO_CHANNEL_SELECT_WEIGHT
3.CFG_USER_AUTO_CHANNEL_SELECTION
4.CFG_USER_ACS_DFS_LTE
5.CFG_EXTERNAL_ACS_POLICY

Change-Id: If31451c2141ec6c30d5590f92a0b36253eaa5c46
CRS-Fixed: 2315978
2018-10-02 02:31:26 -07:00
Sourav Mohapatra
e4c531f3d1 qcacld-3.0: Update default value of gReportMaxLinkSpeed to 0
Presently the ini gReportMaxLinkSpeed has the default value as 2 that
gives the scaled rate to the userspace instead of actual rate. As the
userspace needs the actual rates, this causes a mismatch.

Configure the value of gReportMaxLinkSpeed to 0 so as to send the actual
rates to the userspace.

Change-Id: Ieaa828d1aabaf099c74a9d5093f5d6fab5da01b5
CRs-Fixed: 2317661
2018-10-02 00:46:48 -07:00
Pragaspathi Thilagaraj
a19068f611 qcacld-3.0: Fix default ini value of gAutoBmpsTimerValue
When BMPS is already enabled and we have entered the WOW mode,
we start detecting the AP behavior , where the AP
continuously sets the TIM bit and because of which we don’t go
to PM1 mode after waking UP.

With the current ini value, we don't go to sleep for 30 secs,
which should be updated to 90secs.

Change-Id: I3b551011e90761f1dc13197a4795972f495853a6
CRs-Fixed: 2306266
2018-10-02 00:46:44 -07:00
Wu Gao
66454f118f qcacld-3.0: Apply PMO configures
Since refined PMO configures based on converged cfg component, apply
PMO configurations, remove related legacy codes.

Change-Id: I2cdf18c1000d8cc923c80c00bf530b2b0c60563e
CRs-Fixed: 2322185
2018-10-01 18:38:10 -07:00
Rajeev Kumar
9f46158146 qcacld-3.0: Resume wlan threads during shutdown before adapter reset
Resume wlan threads during wlan shutdown process before adapter reset
because adapter reset triggers vdev destroy and vdev destroy sends
del sta self message to lower layers and in absence of wlan threads
this message will not be processed leading to timeout and vdev peer
object leak. Hence add fix to make sure wlan threads are resumed
before resetting adapters during wlan shutdown process.

Change-Id: Idc31b7e41e5d9734b5f6b96fba24948dbfb45c3d
CRs-Fixed: 2321503
2018-10-01 14:59:40 -07:00
Abhishek Singh
ee5c9a3851 qcacld-3.0: Fix handling of QOS action frame
QOS action frame is not handled and thus HDD's dscp mapping
are not updated.

Update the HDD's dscp mapping properly once hdd receive
QOS action frame.

Change-Id: I04ba9882767918cfb0c551791783f2b7eac998d5
CRs-Fixed: 2325729
2018-10-01 13:24:35 -07:00
Pragaspathi Thilagaraj
3551caa95b qcacld-3.0: Fix error handling in eWNI_SME_ADD_STA_SELF_RSP
When peer creation fails in wma_create_peer, vdev delete is sent
to the fw and then eWNI_SME_ADD_STA_SELF_RSP is sent to sme.
Here three error cases needs to be handled:
1. The vdev deletion has happened, but the cdp_detach_peer is
not done. So the data path peer remains. Also the vdev_active
flag that was set after vdev creation was not unset.
2. The eWNI_SME_ADD_STA_SELF_RSP msg handler
csr_process_add_sta_session_rsp invokes csr_roam_session_opened
which signals HDD that vdev is created successfully and hdd
calls hdd_vdev_ready and vdev related parameter set commands are
sent to FW for the deleted vdev.
3. Vdev delete is not sent for objmgr peer creation failure in
case of VDEV_TYPE_STA and release vdev object ref count.

Add cdp_vdev_detach() calls during error case and set the
vdev_active flag to false. Handle releasing vdev object ref
count in all needed error case flows.
Propagate the error in wma_vdev_attach() through
csr_roam_session_opened() to HDD and abort the vdev create.

Change-Id: Iec97122d011098fae7ae2a59864fbe8ca8a0980e
CRs-Fixed: 2322212
2018-10-01 09:24:20 +05:30