Commit graph

1,261 commits

Author SHA1 Message Date
Jeff Johnson
020db459ad qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [2/6]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_cfg80211.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 2 update the following functions:
__wlan_hdd_cfg80211_get_tdls_capabilities
wlan_hdd_send_avoid_freq_event
__is_driver_dfs_capable
wlan_hdd_sap_cfg_dfs_override
wlan_hdd_cfg80211_start_acs
__wlan_hdd_cfg80211_do_acs
__wlan_hdd_cfg80211_get_supported_features
__wlan_hdd_cfg80211_set_scanning_mac_oui
__wlan_hdd_cfg80211_get_features
__wlan_hdd_cfg80211_set_ext_roam_params
wlan_hdd_check_dfs_channel_for_adapter
wlan_hdd_disable_dfs_chan_scan
__wlan_hdd_cfg80211_disable_dfs_chan_scan
__wlan_hdd_cfg80211_keymgmt_set_key
__wlan_hdd_cfg80211_get_logger_supp_feature
wlan_hdd_send_roam_auth_event

Change-Id: I54e01d92eafffc2a0c5d966158072f3b2dd101a4
CRs-Fixed: 937644
2016-07-06 13:29:48 -07:00
Vishwajith Upendra
ae661a97d0 Release 5.1.0.16
Release 5.1.0.16

Change-Id: Iff8c85f2aaf8702c1a02c8e0d177d304ea47de91
CRs-Fixed: 688141
2016-07-06 13:29:44 -07:00
Naveen Rawat
9801ac0282 qcacld-3.0: Handle peer kickout event for STA role
This is qcacld-2.0 to qcacld-3.0 propagation

Till now kickout event was only handled for SAP role.
The patch handles wmi event for peer kickout due to
inactivity in STA role.

Change-Id: I437dc3e07737bb653e969406b64cd9dad56fbbcd
CRs-Fixed: 861917
2016-07-06 13:29:41 -07:00
Naveen Rawat
6de4645864 qcacld-3.0: Destroy sap_dfs_cac_timer properly
This is qcacld-2.0 to qcacld-3.0 propagation.

Destroy sap_dfs_cac_timer at callback function based on check if timer
is still valid.

Change-Id: Ib8b92ac11444b63a0d8002edff35cd9238bb2573
CRs-Fixed: 967907
2016-07-06 13:29:36 -07:00
Naveen Rawat
0c81edcad4 qcacld-3.0: Fix memory leak in del bss response
This is qcacld-2.0 to qcacld-3.0 propagation

Fix memory leak in del_bss_rsp params in case del_bss_rsp
is dropped at lim due to invalid session id.

Change-Id: I4dfc8697fd5248d8a16ad5a248d5f06e86a105d0
CRs-Fixed: 970601
2016-07-06 13:22:40 -07:00
Tushnim Bhattacharyya
d75eb94da7 qcacld-3.0: Add array boundary check while splitting channel list
Add array boundary check while splitting channel list for populating
PCL

Change-Id: I367d8f93b736c988da3746e0acdd57a6ce2c6a46
CRs-Fixed: 1034774
2016-06-30 14:18:20 -07:00
Jeff Johnson
46b4079866 qcacld-3.0: Convert wlan_hdd_cfg80211.c to unified logging [1/6]
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_cfg80211.c to use the unified set of APIs.  Since there are a
large number of changes in this file, perform the conversion in
phases.

For phase 1 update the following since automated conversion is not
properly processing these function:
         wlan_hdd_cfg80211_acs_ch_select_evt()
         wlan_hdd_cfg80211_set_key_wapi()

Change-Id: I31e5ea914ed1f5aa807ff0ce1c67b6ed64620dee
CRs-Fixed: 937644
2016-06-30 13:38:44 -07:00
Nirav Shah
df3659ec30 qcacld-3.0: Add skb NULL check in error scenario
Add skb NULL check in error scenario before
dereferencing it.

CRs-Fixed: 1034600
Change-Id: I18b19978d89346dc09f72bec7323de1212460dd2
2016-06-30 11:49:22 -07:00
Naveen Rawat
35804773da qcacld-3.0: Fix NULL pointer de-reference in wma functions
Add null pointer check after malloc/utility function call in function:
 * wma_update_tdls_peer_state
 * wma_init_max_no_of_peers
 * wma_mgmt_tx_completion_handler
 * wma_ocb_set_config
 * wma_roam_scan_offload_chan_list
 * wma_roam_scan_filter
 * wma_pno_start
 * wma_start_extscan

Change-Id: I3c46ffe19e98146a5e96781a88295af88274a74f
CRs-Fixed: 1034255
2016-06-30 11:06:25 -07:00
Naveen Rawat
e9fb4cef92 qcacld-3.0: Fix out of bound access in wma_process_gtk_offload_req
Check vdev_id against WMA_MAX_SUPPORTED_BSS instead of wma->max_bssid in
function wma_process_gtk_offload_req.

Change-Id: Ife4e8c907f835f766d6d44815418158cfd305343
CRs-Fixed: 1034255
2016-06-30 11:06:23 -07:00
Naveen Rawat
9598f5edb9 qcacld-3.0: Fix NULL pointer dereference in csr_is_p2p_session_connected
Check pSession->pCurRoamProfile against NULL before dereferencing it in
function csr_is_p2p_session_connected.

Change-Id: I61f681dfd4ff3c7fd2e443f54f6b1713db088250
CRs-Fixed: 1034255
2016-06-30 11:06:22 -07:00
Naveen Rawat
7ecf53d0ae qcacld-3.0: Add for NULL pointer check in sme/csr functions
Check for NULL pointer before accessing pointers in function:
 * csr_roam_join_handle_profile
 * csr_roam_process_results_default
 * csr_roam_process_start_bss_success
 * csr_roam_process_join_res
 * csr_process_nss_update_req
 * csr_is_p2p_session_connected

Change-Id: I9bf83a2641a4523713b9180679648202ea9c9eef
CRs-Fixed: 1034255
2016-06-30 11:06:16 -07:00
Naveen Rawat
cf684760d6 qcacld-3.0: Fix NULL pointer dereference in sme_register_ftm_msg_processor
In function sme_register_ftm_msg_processor, remove access to mac_ctx which is
dereferencing a NULL pointer.

Change-Id: I6e2db08703b3beff23f9398d9d1c88e1c6bcb229
CRs-Fixed: 1034255
2016-06-30 11:06:14 -07:00
Naveen Rawat
afa1553e87 qcacld-3.0: Fix out of bound access in convert_qos_mapset_frame
In function convert_qos_mapset_frame, restrict dscp_exceptions array access
index to size of array

Change-Id: Ieb153e4d263fbc1455b41bec71ec78b7c49558fc
CRs-Fixed: 1034255
2016-06-30 11:06:13 -07:00
Naveen Rawat
d4b56dadeb qcacld-3.0: Fix Null pointer dereference in rrm_process_beacon_report_xmit
In function rrm_process_beacon_report_xmit, reset flag_bss_present before
processing each bss descriptor.

Change-Id: Ic3ef01d79135effe718cbeec29894f6000de7f07
CRs-Fixed: 1034255
2016-06-30 11:06:11 -07:00
Naveen Rawat
9ea7470dde qcacld-3.0: Fix NULL pointer dereference in __lim_process_sme_join_req
In function __lim_process_sme_join_req, access session id and transaction
id from msg_buff instead of sme_join_req which could be null at the point
of access.

Change-Id: I299b87f6144d0b6452d49ebc9d8ed28ff417723c
CRs-Fixed: 1034255
2016-06-30 11:06:10 -07:00
Nirav Shah
bf1b033062 qcacld-3.0: Add per CPU interrupt statistics
Add per CPU per copy engine interrupt statistics.

Change-Id: I397733ca9c46274f9b5c0026f032e3345100a98d
CRs-Fixed: 1017437
2016-06-30 14:49:30 +05:30
Leo Chang
cc923e2771 qcacld-3.0: IPA WDI TX buffer allocation on coherent memory
IPA WDI TX buffer should be used by IPA HW/WLAN FWHW during
WLAN activated. This memory is not used by HLOS. Then
coherent memory allocation is better for usage.

Change-Id: Icc96c54aca9fc986c231ac3173f54cf7c7f253aa
CRs-fixed: 1019762
2016-06-29 21:53:13 -07:00
Jeff Johnson
b492d75989 qcacld-3.0: Convert wlan_hdd_scan.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In
qcacld-3.0 HDD should converge on a unified set of logging APIs.
Update wlan_hdd_scan.c to use the unified set of APIs.

Change-Id: I10d5dea38970c8927e95e7b9c300bb2c0fdcfcf0
CRs-Fixed: 937686
2016-06-29 21:02:40 -07:00
Gupta, Kapil
7122125d16 qcacld-3.0: Set initial dense status in case of dense roaming
In case of dense roam scenario, Host should set initial dense
status if roamable AP count is more than minimum dense AP count.

Add changes to set the flag if roamable AP count is more than
configured value.

CRs-Fixed: 1023078
Change-Id: I25bd26ae1292c0a829c1b1634df3ab975ab562c1
2016-06-29 21:02:37 -07:00
Poddar, Siddarth
29296fbb1c qcacld-3.0: Add hif-sdio support (Part 8: - HIF SDIO)
Add kbuild changes for HIGH latency and HIF
SDIO changes

Change-Id: I4d886090773a9b19d27a9f68115774b87299d84d
CRs-Fixed: 969334
2016-06-29 21:02:34 -07:00
Naveen Rawat
0fc3f69974 qcacld-3.0: Register PE NDP event handler callback with WMA
Register PE NDP event handler callback with WMA. NAN even handlers at WMA are
already running in MC thread context and callback avoids unnecessary message
posting from WMA to PE for processing of NDP firmware events.

Change-Id: I94328ef69a3ee4ae6e7af2978bfad5a7ddcb385d
CRs-Fixed: 962367
2016-06-29 19:42:11 -07:00
Deepak Dhamdhere
bf1f9b1e36 qcacld-3.0: Un/Register NAN data path WMI event handlers
qcacld-2.0 to qcacld-3.0 propagation

Add routines to register and unregister all WMI event handlers
for NAN datapath.

CRs-Fixed: 962367
Change-Id: Ie2230e55ca15f03d76b4b8fc441370335743f87e
2016-06-29 19:42:10 -07:00
Deepak Dhamdhere
13983f2571 qcacld-3.0: Handle request to delete NAN Data Interface (NDI)
qcacld-2.0 to qcacld-3.0 propagation

Add changes to handle request to delete NAN datapath interface.

Change-Id: I3efef6adf6c7a974d3e344a7609f8517cd1aa752
CRs-Fixed: 962367
2016-06-29 19:42:08 -07:00
Deepak Dhamdhere
5cdce8429e qcacld-3.0: Add support for NDP vendor commands and NDI Create
Add support for NDP vendor commands and implement NAN Data Interface
create.

Propagation from qcacld-2.0 to qcacld-3.0

CRs-Fixed: 962367
Change-Id: I84e9ac5ccfe8faaa00dfc448defb81fb792263d5
2016-06-29 19:42:07 -07:00
Deepak Dhamdhere
e2dd5440bf qcacld-3.0: Implement NAN datapath interface create
qcacld-2.0 to qcacld-3.0 propagation

Add changes to support session and BSS creation in NDI mode.

CRs-Fixed: 962367
Change-Id: I585cd89702a2c412783ae93fb1558ed5bfe31fd9
2016-06-29 19:42:05 -07:00
Ravi Joshi
412f23deb2 qcacld-3.0: Add interface changes for supporting NAN data path
Add interface changes to enable NAN data path feature

Propagation from qcacld-2.0 to qcacld-3.0

CRs-Fixed: 962367
Change-Id: I12a1d0cf37db22ff0bcb8165cb3f6b3847f8bf5b
2016-06-29 19:42:04 -07:00
Deepak Dhamdhere
c9acc447ea qcacld-3.0: Add messaging interface to support NAN datapath
qcacld-2.0 to qcacld-3.0 propagation

Add messaging interface to support NAN datapath.
"NAN" terminology is used for referencing NAN discovery.
"NDI" and "NDP" are for NAN datapath.

CRs-Fixed: 962367
Change-Id: I1f42c8dab17b3a300db61756c29fc02d3d3bc504
2016-06-29 19:42:02 -07:00
Deepak Dhamdhere
13230d329b qcacld-3.0: Enable NAN datapath based on target capability
qcacld-2.0 to qcacld3.0 propagation

Configure NAN datapath capability of the driver based on
the target device capability.

CRs-Fixed: 962367
Change-Id: I99eac7ae3ae495347208e3849e2383e999dcc125
2016-06-29 19:42:01 -07:00
Deepak Dhamdhere
3385d7595e qcacld-3.0: Add INI items to enable NAN datapath feature
Propagation from qcacld-2.0 to qcacld-3.0.

Add .ini items to enable NAN datapath feature. It will be disabled
by default.

Name: genable_nan_datapath
Minimum: 0 (disable)
Maximum: 1 (enable)
Default: 0 (disable)

CRs-Fixed: 962367
Change-Id: I304fcc70c0e83d890ae95d2d4ff1b7ce691374e2
2016-06-29 19:42:00 -07:00
Archana Ramachandran
63f64ddbaf qcacld-3.0: Skip DSRC channels in TDLS operation
qcacld-2.0 to qcacld-3.0 propagation

We do not support TDLS on DSRC AND DFS channels so skip
these channels in the TDLS frames.

Change-Id: I3ad523ab21d1383df189d3856f6e0759b1a2bb6a
CRs-Fixed: 975657
2016-06-29 18:41:31 -07:00
Archana Ramachandran
7ba24ffc9e qcacld-3.0: Reject TDLS management frames during nss switch
qcacld-2.0 to qcacld-3.0 propagation

When TDLS antenna switch is in progress, only TDLS teardown frame
is allowed to go to firmware and all other TDLS management frames
need to be blocked to avoid unpredictable behavior in the system.
This change allow TDLS teardown frame and reject all
other management frames.

Change-Id: I5775776af376db0d4502df631ccb92e802354c11
CRs-Fixed: 968225
2016-06-29 18:41:29 -07:00
Archana Ramachandran
080404c945 qcacld-3.0: Skip 2GHz off channels when TDLS base channel is in 5GHz
qcacld-2.0 to qcacld-3.0 propagation

In antenna sharing platform, if TDLS operates in the 5G band base
channel with NSS 2x2, it cannot accommodate 2G off channels in
TDLS operation. So in that scenario, 2G channels should be
skipped from TDLS off channels list.
Update driver to remove 2G band channels from supported off
channel list, when TDLS operates in 5G band base channel
with NSS 2x2.

Change-Id: I04aa00e1cecfae86570aa89d1743b54d55b2dc84
CRs-Fixed: 968206
2016-06-29 18:41:27 -07:00
Archana Ramachandran
5041b2579e qcacld-3.0: Support NSS configuration for TDLS from user space
qcacld-2.0 to qcacld-3.0 propagation

TDLS NSS can be changed dynamically by the user, if that happens
the newer NSS value needs to be recorded in the MAC context and
should be used to form TDLS management frames.
Update driver to keep the user configured NSS value in the MAC
context and uses the NSS value in the tdls protocol engine
to construct management frames.

Change-Id: I4098e3c5e3a03c4de6ae40c837a5616613623979
CRs-Fixed: 968106
2016-06-29 18:41:25 -07:00
Archana Ramachandran
2ad7de2b2d qcacld-3.0: Enhance TDLS antenna switch operation
qcacld-2.0 to qcacld-3.0 propagation

Remove TDLS teardown wait event for antenna switch 1x1 -> 2x2 and
avoid band specific validation.

Change-Id: If29c102e59ba0f9df528e988e9d5e517a9849c55
CRs-Fixed: 961949
2016-06-29 18:41:24 -07:00
Archana Ramachandran
d5d2e926c8 qcacld-3.0: Dynamic antenna switch in TDLS operation
qcacld-2.0 to qcacld-3.0 propagation

Add dynamic antenna mode change capability for TDLS
operation.

CRs-Fixed: 951596
Change-Id: Ie0b141fbebe0bfa8a173503fc0ec375095240237
2016-06-29 18:41:22 -07:00
Jeff Johnson
99bac319a8 qcacld-3.0: Convert wlan_hdd_wext.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In
qcacld-3.0 HDD should converge on a unified set of logging APIs.
Update wlan_hdd_wext.c to use the unified set of APIs.

Change-Id: I4fff38875f9591a6782d0d898b653a56ff7d7946
CRs-Fixed: 937690
2016-06-29 15:50:08 -07:00
Vishwajith Upendra
495d7a323d Release 5.1.0.15
Release 5.1.0.15

Change-Id: Ic28705b8d3f8cce1cd18a55ddcf873f86291ff2f
CRs-Fixed: 688141
2016-06-29 12:11:46 -07:00
Jeff Johnson
731f3a1f88 qcacld-3.0: Convert wlan_hdd_lpass.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In qcacld-3.0
HDD should converge on a unified set of logging APIs.  Update
wlan_hdd_lpass.c to use the unified set of APIs.

Change-Id: I34c145c43507ff882e371d05cb59c7ec73f366e5
CRs-Fixed: 1018555
2016-06-29 12:11:46 -07:00
Jeff Johnson
f96ef73c7c qcacld-3.0: Add kernel-doc to wlan_hdd_lpass.c
wlan_hdd_lpass.c is missing documentation, so add it.

Change-Id: Ie12e11b09a143eeca0a0a2d332506d14322217fe
CRs-Fixed: 1018553
2016-06-29 12:11:46 -07:00
Jeff Johnson
d9dd484ab7 qcacld-3.0: Fix camelCase in wlan_hdd_lpass
Currently wlan_hdd_lpass uses camelCase for some variables in
violation of kernel coding guidelines.  Rename such variables to align
with the kernel coding style.

Change-Id: I2ec2c37c48442653619a1e5a2a6c47de944bd9dc
CRs-Fixed: 1018553
2016-06-29 12:11:46 -07:00
Govind Singh
fe9ab254ad qcacld-3.0: Refactor WMA data commands to fix WIN compilation
Refactor WMA data commands to remove dependency of WMA header files
in common wmi layer.

Change-Id: Ic16020d9e4fce4db71b265b88703f7cef7b8a275
CRs-Fixed: 1008872
2016-06-29 12:11:46 -07:00
Sandeep Puligilla
607f34a72e qcacld-3.0: Cleanup HT capability global configurations
UMAC maintains CFG item for each individual field of the HT
capability IE along with the global CFG item for HT cap IE.
This leads to update two global CFG items whenever there
is a change in HT capability IE field.

Remove the duplicate configuration items.
Update LIM code to read the capablities from the session
not from the globals.

Change-Id: Idf5c4358ab67983778a56e2fe3a2f21d1adc19e1
CRs-Fixed: 1029145
2016-06-29 12:11:46 -07:00
Jeff Johnson
2b0a7b818b qcacld-3.0: Refactor WLAN_FEATURE_LPSS
Currently in HDD the WLAN_FEATURE_LPSS code is distributed amongst
multiple source files. In order to be more aligned with established
practices refactor most of the feature code into a feature-specific
file .

Change-Id: I7c743f32fd1455fc253a00d69bfc9abb7f6743da
CRs-Fixed: 1018553
2016-06-29 12:11:31 -07:00
Vishwajith Upendra
735275240d Release 5.1.0.14
Release 5.1.0.14

Change-Id: Ie4694d6a417241ddc194ba2cdf0957dbed4c2d95
CRs-Fixed: 688141
2016-06-27 18:29:55 -07:00
Arif Hussain
eee043c5bf qcacld-3.0: SAP DFS: Reduce DFS event parameters size
Reduce DFS event parameters size to avoid prealloc failure.

Change-Id: Ide57b3215440aaeebbfa579b858ac1de93938ceb
CRs-Fixed: 1024434
2016-06-27 18:27:20 -07:00
Kiran Kumar Lokere
f1f5e99a70 qcacld-3.0: Update the VHT operation IE as per latest draft
VHT operation IE parameters values are changed in latest draft,
update the set_channel_params to set the new values as per latest
draft.

Change-Id: I2b8f78adb608bf942dff28eda44138044ba93e59
CRs-Fixed: 1022680
2016-06-27 18:25:42 -07:00
Jeff Johnson
bfa0206843 qcacld-3.0: Convert wlan_hdd_oemdata.c to unified logging
Currently the HDD code uses a variety of logging APIs.  In
qcacld-3.0 HDD should converge on a unified set of logging APIs.
Update wlan_hdd_oemdata.c to use the unified set of APIs.

Change-Id: I314879dec6ff7559bded13c158101f41dd4915e9
CRs-Fixed: 937677
2016-06-27 18:21:52 -07:00
Manishekar Chandrasekaran
e32a84812b qcacld-3.0: Update the usage of INI entry 'gWlanMccToSccSwitchMode'
Update the usage of INI entry 'gWlanMccToSccSwitchMode' to reflect
the new options available to avoid MCC condition.

Change-Id: I866393f9df8b266eaeb7e027eb30aa5759b9d832
CRs-Fixed: 1034298
2016-06-27 18:20:37 -07:00
Manishekar Chandrasekaran
1db3abe6cc qcacld-3.0: Use mandatory channel list during SAP operation
Ensure that the SAP operations make use of the mandatory
channel list during SAP channel selection with INI option
'gWlanMccToSccSwitchMode' set to the value of '4' which
will make use of this channel list while trying to avoid
MCC scenarios.

Change-Id: Ia43ee1d2c598c81a5ef0add9246c400577f6f694
CRs-Fixed: 1014128
2016-06-27 18:19:59 -07:00