Commit Graph

6671 Commits

Author SHA1 Message Date
Jeff Johnson
4f51934a73 qcacld-3.0: Remove sme_set_idle_powersave_config() cds_ctx param
Currently sme_set_idle_powersave_config() takes a cds_ctx
parameter. At one time this was needed for the call to
cds_get_context(), but that is no longer the case, so remove this
unused parameter.

Change-Id: Iacef39eded8d87a22a30fe62b0305f93e604dc4c
CRs-Fixed: 2109431
2017-09-14 06:51:58 -07:00
Jeff Johnson
e4b145949f qcacld-3.0: Remove cds_context param to cds_close()
Currently cds_close() takes a cds_context param. However CDS already
maintains its own context, hence this param introduces an unnecessary
coupling, so remove it.

Change-Id: I9c5231ef5d1e2ca969ff01c3fa0dc9b202e1aabd
CRs-Fixed: 2109430
2017-09-14 06:51:57 -07:00
Jeff Johnson
ea5c2aa194 qcacld-3.0: Remove cds_context param to cds_disable()
Currently cds_disable() takes a cds_context param. However CDS already
maintains its own context, hence this param introduces an unnecessary
coupling, so remove it.

Change-Id: I539b3c19a52a9c663268bade6a0acfaa411906dd
CRs-Fixed: 2109429
2017-09-14 06:51:57 -07:00
Jeff Johnson
8f9dd5fd64 qcacld-3.0: Remove cds_context param to cds_enable()
Currently cds_enable() takes a cds_context param. However CDS already
maintains its own context, hence this param introduces an unnecessary
coupling, so remove it.

Change-Id: I13a9a0cbdb8b869f8f543c4f7f89cffbcf4fd210
CRs-Fixed: 2109427
2017-09-14 06:51:57 -07:00
Jeff Johnson
ec685dbcda qcacld-3.0: Correctly call wlansap_cancel_remain_on_channel()
Over time the wlansap() APIs changed from being passed the global
context to being passed the SAP context. Apparently two invocations of
wlansap_cancel_remain_on_channel() were not correctly updated, so
update them.

Change-Id: I53c54c639ed2695439e4f5cf506e7f23732ab8de
CRs-Fixed: 2109408
2017-09-14 06:51:57 -07:00
snandini
73465455e1 Release 5.2.0.43O
Release 5.2.0.43O

Change-Id: Ia1035d4acfaf5af82ff9e05274fa186d5d783cf3
CRs-Fixed: 774533
2017-09-13 23:27:17 -07:00
bings
aa6f96a345 qcacld-3.0: Fix channel weight calculation errors in ACS mode
Channel 13 and channel 9 can be combined to HT40. The channel weight of
13 is updated with channel 9 when chStartNum of acs_ht40_channels24_g
is 9 in sap_sort_chl_weight_ht40_24_g, however at this time the channel
weight of 9 may be already updated to SAP_ACS_WEIGHT_MAX * 2 when the
chStartNum of acs_ht40_channels24_g is 1. In such case channel weight of
13 is updated incorrectly.

When update the channel weight of 13, use original channel weight of
channel 9 and channel 13.

Change-Id: Iab16cd5b1ab45fdf2f9805767d81c6fc997ee4be
CRs-Fixed: 2105213
2017-09-13 23:27:17 -07:00
snandini
b892a9cbe6 Release 5.2.0.43N
Release 5.2.0.43N

Change-Id: I7be0a1ce64c936f84bd8580c3f0ff8fdbc8e217b
CRs-Fixed: 774533
2017-09-13 20:07:39 -07:00
Jeff Johnson
adb3b1cadf qcacld-3.0: Remove cds_[alloc|free]_context() parameter
Currently cds_alloc_context() & cds_free_context() take a CDS context
parameter. However CDS already maintains its own context, hence this
parameter introduces an unnecessary coupling, so remove it.

Change-Id: I4501a0fea7acc7b4a764b0d425da386922b93bcb
CRs-Fixed: 2109265
2017-09-13 20:07:39 -07:00
Jeff Johnson
ff6addf320 qcacld-3.0: Remove wma_open() cds_ctx parameter
Currently wma_open() takes a cds_ctx parameter. All of the other WMA
functions which previously took a cds_ctx no longer use that
parameter, and those functions have been modified to remove the unused
parameter. wma_open() still needs the cds_ctx, but it can get that
context by calling cds_get_global_context(), so remove the cds_ctx
parameter to be consistent with the other WMA functions.

Note: the fact that wma_open() needs the cds_ctx, and then
dereferences it, is a layering violation that needs to be addressed in
the future.

Change-Id: I176e2ac68cc2e8081645a4ce3c158b41d3018587
CRs-Fixed: 2109263
2017-09-13 20:07:37 -07:00
Jeff Johnson
7b3ddc2a5b qcacld-3.0: Remove wma_wmi_service_close() cds_ctx parameter
Currently wma_wmi_service_close() takes a cds_ctx parameter. All of
the other WMA functions which previously took a cds_ctx no longer use
that parameter, and those functions have been modified to remove the
unused parameter. wma_wmi_service_close() still needs the cds_ctx, but
it can get that context by calling cds_get_global_context(), so remove
the cds_ctx parameter to be consistent with the other WMA functions.

Note: the fact that wma_wmi_service_close() needs the cds_ctx, and
then dereferences it, is a layering violation that needs to be
addressed in the future.

Change-Id: I02564bae87077314fea58c1509b3a50b8d567a7a
CRs-Fixed: 2109262
2017-09-13 20:07:35 -07:00
Jeff Johnson
6b8473d136 qcacld-3.0: Remove wma_wmi_work_close() cds_ctx parameter
Currently wma_wmi_work_close() takes a cds_ctx parameter. At one time
this was needed for the call to cds_get_context(), but that is no
longer the case, so remove this unused parameter.

Change-Id: Ibc64cd1398babc899c21a1ee4c0fc280769c4d9e
CRs-Fixed: 2109261
2017-09-13 20:07:33 -07:00
Jeff Johnson
542da35e39 qcacld-3.0: Remove wma_close() cds_ctx parameter
Currently wma_close() takes a cds_ctx parameter. At one time this was
needed for the call to cds_get_context(), but that is no longer the
case, so remove this unused parameter.

Change-Id: I31d1016cff580f9330027f8104348466df9f01dd
CRs-Fixed: 2109259
2017-09-13 20:07:31 -07:00
Jeff Johnson
5be42abfb6 qcacld-3.0: Remove unused wma_mc_process_msg() parameter
Currently wma_mc_process_msg() takes a cds_context parameter.  At one
time this parameter was needed, but that is no longer the case, so
remove this now unused parameter.

Change-Id: Ia460afc5db932274cd960485af93fc48e899ff35
CRs-Fixed: 2109258
2017-09-13 20:07:29 -07:00
Jeff Johnson
f7ab814a0c qcacld-3.0: Remove cds_wma_complete_cback() parameter
Currently cds_wma_complete_cback() takes a parameter that is a pointer
to the CDS context. However CDS already maintains its own context,
hence this param introduces an unnecessary coupling, so remove it.

Change-Id: I1b4588f18f807008fd212a8e5d04e3895a12922c
CRs-Fixed: 2109257
2017-09-13 20:07:27 -07:00
Jeff Johnson
8ad89c6cd4 qcacld-3.0: Remove wma_pre_start() cds_ctx parameter
Currently wma_pre_start() takes a cds_ctx parameter. At one time this
was needed for the call to cds_get_context(), but that is no longer
the case, so remove this unused parameter.

Change-Id: Ic4582ecafbee6fc1d0f8ebbf3c62ed8c7b47a179
CRs-Fixed: 2109255
2017-09-13 20:07:24 -07:00
Jeff Johnson
acc1cc7a4e qcacld-3.0: Remove wma_stop() cds_ctx parameter
Currently wma_stop() takes a cds_ctx parameter. At one time this was
needed for the call to cds_get_context(), but that is no longer the
case, so remove this unused parameter.

Change-Id: Iba40ac86e5916be3b8c2a62cf5483c9b7a242be5
CRs-Fixed: 2109254
2017-09-13 20:07:23 -07:00
Jeff Johnson
d489255594 qcacld-3.0: Remove wma_start() cds_ctx parameter
Currently wma_start() takes a cds_ctx parameter. At one time this was
needed for the call to cds_get_context(), but that is no longer the
case, so remove this unused parameter.

Change-Id: If6756ca37a7e4ec4ade1c72eea080f3bc89ad7e4
CRs-Fixed: 2109253
2017-09-13 20:07:21 -07:00
Jeff Johnson
1f8d0a0a9c qcacld-3.0: Remove wma_setneedshutdown() cds_ctx parameter
Currently wma_setneedshutdown() takes a cds_ctx parameter. At one time
this was needed for the call to cds_get_context(), but that is no
longer the case, so remove this unused parameter.

Change-Id: I65f2af2e97b09523f5cf00369b5cf95ad01194d9
CRs-Fixed: 2109252
2017-09-13 20:07:19 -07:00
Jeff Johnson
1b5404e93c qcacld-3.0: Remove wma_needshutdown() cds_ctx parameter
Currently wma_needshutdown() takes a cds_ctx parameter. At one time
this was needed for the call to cds_get_context(), but that is no
longer the case, so remove this unused parameter.

Change-Id: I31fd07480719bf3401ed52b57951e19ccb4d143c
CRs-Fixed: 2109251
2017-09-13 20:07:17 -07:00
Jeff Johnson
3a28012805 qcacld-3.0: Remove cds_context param to cds_pre_enable()
Currently cds_pre_enable() takes a cds_context param. However CDS
already maintains its own context, hence this param introduces an
unnecessary coupling, so remove it.

Change-Id: I5a33859583ea4245c79daf42addd62ecedfd11df
CRs-Fixed: 2109242
2017-09-13 20:07:15 -07:00
Jeff Johnson
52e0c4384e qcacld-3.0: Remove unused sys_mc_process_msg() parameter
Currently sys_mc_process_msg() takes a p_cds_context parameter.  At
one time this parameter was needed in calls to cds_get_context(), but
that is no longer the case, so remove this now unused parameter.

Change-Id: Idf9829e76846888c783d1b0b064879cd539bd8a6
CRs-Fixed: 2109239
2017-09-13 20:07:13 -07:00
snandini
26a8c881a6 Release 5.2.0.43M
Release 5.2.0.43M

Change-Id: Ifc1ffd2b996bf5d3fbdb72d3ea76a0136c9adc25
CRs-Fixed: 774533
2017-09-13 19:26:18 -07:00
Jeff Johnson
9e975c250f qcacld-3.0: Remove unnecessary get of global context in HDD
Several HDD callback functions call cds_get_global_context() to get
the global context. At one time this was necessary since the global
context was required to get the module-specific context. However the
global context is no longer required, so remove the unnecessary
retrieval of the global context.

Change-Id: I45921e6b09dcfb72db0ce6044c295d46a064d6e9
CRs-Fixed: 2102482
2017-09-13 19:26:18 -07:00
Ashish Kumar Dhanotiya
1f6df4d482 qcacld-3.0: Add an attribute to represent PNO/EPNO Request ID
This request ID was wrongly referred from the REQUEST_ID in
enum qca_wlan_vendor_attr_gscan_config_params which is mapped to
QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM in PNO Config.
Hence define a different attribute to represent the request ID
for the PNO Config.

CRs-Fixed: 2087785
Change-Id: I2b5efe78605d07d92db564a987ea0ae4ff0a2cc8
2017-09-13 19:26:16 -07:00
snandini
11c905b510 Release 5.2.0.43L
Release 5.2.0.43L

Change-Id: I540c4546fce0443d9f7338ac0a47cac042e59d62
CRs-Fixed: 774533
2017-09-13 14:15:26 -07:00
Tushnim Bhattacharyya
3efa49a78b 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
2017-09-13 14:15:26 -07:00
snandini
cfc8641400 Release 5.2.0.43K
Release 5.2.0.43K

Change-Id: I3d656147c3f066ffc39d908fc73a51b8431b2a7d
CRs-Fixed: 774533
2017-09-13 13:27:01 -07:00
Arif Hussain
a98a87b7e4 qcacld-3.0: Fix NULL pointer access in sme_qos_process_add_ts_success_rsp
Make sure to validate pCurRoamProfile before
dereferencing it to avoid NULL pointer access.

Change-Id: Ic2f68b9cfe352d903bebba163ccfe253e04dfcdb
CRs-Fixed: 2083710
2017-09-13 13:27:01 -07:00
snandini
ebebfee72a Release 5.2.0.43J
Release 5.2.0.43J

Change-Id: I3a710de59da1fce8d0fc9b6fd26ca4d0e9d1a4be
CRs-Fixed: 774533
2017-09-13 02:42:35 -07:00
Jeff Johnson
7b0b94d4a4 qcacld-3.0: Remove hdd_exchange_version_and_caps()
Function hdd_exchange_version_and_caps() is unused, so remove it.

Change-Id: I0ded9473083418f6bb33cec4fa43a17c8c281177
CRs-Fixed: 2106854
2017-09-13 02:42:35 -07:00
Jeff Johnson
4940059f43 qcacld-3.0: Remove wlan_hdd_restart_sap() prototype
wlan_hdd_main.h currently exports wlan_hdd_restart_sap() but the
function is not present, so remove the obsolete prototype.

Change-Id: I777fc8e5d491e7c5335684c8a09ebed872e63acc
CRs-Fixed: 2106853
2017-09-13 02:42:33 -07:00
snandini
490ea5a5de Release 5.2.0.43I
Release 5.2.0.43I

Change-Id: I708f9756ddbe76f21c1000d4bc678b99f867e69d
CRs-Fixed: 774533
2017-09-13 01:48:33 -07:00
Abhishek Singh
86ea5c7e41 qcacld-3.0: Fix OCE Vendor IE seen twice in beacon
wlan_hdd_add_hostapd_conf_vsie func take care of adding Vendor IE's
other then Whitelist, Blacklist, WPA IEs, so there is no need to
add OCE and other vendor IEs seperately.

To fix it remove the code which adds Vendor IE in
wlan_hdd_cfg80211_update_apies as it will be taken care by
wlan_hdd_add_hostapd_conf_vsie. Also fix the logic in
wlan_hdd_add_hostapd_conf_vsie to add all required vendor IEs.

Change-Id: I4391a02eb593bdc725b3a9da65e8d5c895903b5f
CRs-Fixed: 2099963
2017-09-13 01:48:33 -07:00
Jeff Johnson
01ce46e7cb qcacld-3.0: Remove wlan_hdd_restart_driver() prototype
wlan_hdd_main.h currently exports wlan_hdd_restart_driver() but the
function is not present, so remove the obsolete prototype.

Change-Id: I98b6bc8aa3689cbda3f989f055a7632148c1bfba
CRs-Fixed: 2106852
2017-09-13 01:48:31 -07:00
Jeff Johnson
f9d324c699 qcacld-3.0: Remove wlan_hdd_check_sta_ap_concurrent_ch_intf()
wlan_hdd_main.h currently exports
wlan_hdd_check_sta_ap_concurrent_ch_intf()

The function does not exist, so remove the prototype.

Change-Id: I4064a4db0e90705c1d23704e335c2d815ac2a0a6
CRs-Fixed: 2106850
2017-09-13 01:48:28 -07:00
snandini
73fb80d84e Release 5.2.0.43H
Release 5.2.0.43H

Change-Id: I5e87d6b58835b8adbd76650fb4d72b5a6b986b26
CRs-Fixed: 774533
2017-09-12 23:27:43 -07:00
Houston Hoffman
fbf05101d5 qcacld-3.0: Support dp trace level ini config
Set dp trace level to exclude debug level by default.
Let this be over ridden by ini.

Change-Id: I1ccca7c670467fd2fd84efb3897e610e794efac6
CRs-Fixed: 2101135
2017-09-12 23:27:43 -07:00
Abhishek Singh
e4b6b4ede2 qcacld-3.0: Fix suspicious dereference of pointer
Add proper NULL check before dereferencing pointer,
also add check to validate length of buffer before
copy data.

Change-Id: I41d4dd2119b4525ab1b5b43d44a2d872129a3c31
CRs-Fixed: 2043356
2017-09-12 23:27:41 -07:00
snandini
f86f90520d Release 5.2.0.43G
Release 5.2.0.43G

Change-Id: I190838c8a4844dd72c58fcc3e53f53da66be962f
CRs-Fixed: 774533
2017-09-12 19:54:33 -07:00
Jeff Johnson
a14a3acaf9 qcacld-3.0: Remove csr_set_opposite_band_channel_info()
csr_internal.h exports csr_set_opposite_band_channel_info() but the
function is no longer present, so remove the obsolete prototype.

Change-Id: I7a5c775ae80c28bd23972df7e4dfddbead6040a5
Crs-Fixed: 2108359
2017-09-12 19:54:33 -07:00
Jeff Johnson
6061a01ba2 qcacld-3.0: Remove csrScanSetChannelMask() prototype
csr_internal.h exports csrScanSetChannelMask() but the function is not
present, so remove the obsolete prototype.

Change-Id: I405cc2d9aa12cce15c58118d335a7eeb2b863b70
CRs-Fixed: 2108357
2017-09-12 19:54:30 -07:00
Jeff Johnson
634f2ff71c qcacld-3.0: Remove csrScanFilter11dResult() prototype
csr_internal.h exports csrScanFilter11dResult() but the function is no
longer present, so remove the obsolete prototype.

Change-Id: Ie163dc247d47feeb0d6b5a33aa5d78d6fefbc167
CRs-Fixed: 2108355
2017-09-12 19:54:28 -07:00
Jeff Johnson
99c797212d qcacld-3.0: Remove csr_scan_copy_result_list() prototype
csr_inside_api.h exports csr_scan_copy_result_list() but the function
is no longer present, so remove the obsolete prototype.

Change-Id: Ifcc6175325e4cd7a4f04dfbbab817efd672df4c9
CRs-Fixed: 2108354
2017-09-12 19:54:26 -07:00
Jeff Johnson
797ef7c98b qcacld-3.0: Remove csrScanAbort() prototype
csr_inside_api.h exports csrScanAbort() but the function is no longer
preset, so remove the obsolete prototype.

Change-Id: I9ad67836ff45dc9d36185a98f2e5cc7cea70eebc
CRs-Fixed: 2108353
2017-09-12 19:54:24 -07:00
Jeff Johnson
6a5729b35d qcacld-3.0: Remove csr_roam_is_valid40_mhz_channel()
sme_inside.h exports csr_roam_is_valid40_mhz_channel() but the
function is no longer present, so remove the obsolete prototype.

Change-Id: Iea9d46584b038daed1cb690d8036a7fc86ea204e
CRs-Fixed: 2108352
2017-09-12 19:54:21 -07:00
Jeff Johnson
43a80b94d6 qcacld-3.0: Remove csr_roam_issue_ft_roam_offload_synch()
csr_api.h exports csr_roam_issue_ft_roam_offload_synch() but the
function no longer exists, so remove the obsolete prototype.

Change-Id: Ida6f00bc9615c0f50824e4f4a92b75c723d342af
CRs-Fixed: 2108351
2017-09-12 19:54:18 -07:00
Jeff Johnson
bbace0a9fb qcacld-3.0: Remove sapCleanupAllChannelList() prototype
sap_api.h currently exports sapCleanupAllChannelList() but the
implementation of that function is no longer preset, so remove the
obsolete prototype.

Change-Id: Ic7fae1985edebde3784e33aed09d011acbcd251d
CRs-Fixed: 2108350
2017-09-12 19:54:17 -07:00
Jeff Johnson
97b656046f qcacld-3.0: Remove wlansap_update_bw80_cbmode()
Function wlansap_update_bw80_cbmode() is unused, so remove it.

Change-Id: I2377eaad16296f6cce01223a70b241cc177298a0
CRs-Fixed: 2108349
2017-09-12 19:54:14 -07:00
Jeff Johnson
dae9488f36 qcacld-3.0: Remove wlansap_pmc_full_pwr_req_cb()
Function wlansap_pmc_full_pwr_req_cb() is not used, so remove it.

Change-Id: I25d0a5b44d8576b5d302132b47a6955febaec86d
CRs-Fixed: 2108348
2017-09-12 19:54:12 -07:00