Commit Graph

6696 Commits

Author SHA1 Message Date
Naveen Rawat
bec64d9137 qcacld-3.0: Fix SAP ACS logging
Fix misleading ACS logging that indicates best channel and final
channel selected are different.

Change-Id: I00a2a15fa9d709c3e78ebf580d599ec10deefb28
CRs-Fixed: 2105204
2017-09-18 15:37:25 -07:00
snandini
37fb05fc3d Release 5.2.0.43Y
Release 5.2.0.43Y

Change-Id: I10a2d1435323c04a3684d331ff49588e1541708b
CRs-Fixed: 774533
2017-09-18 12:22:05 -07:00
Vignesh Viswanathan
4126db0a47 qcacld-3.0: Fix out-of-bounds access in lim_process_action_vendor_specific
Currently in the function lim_process_action_vendor_specific, mem_cmp
is done on the received frame pointer without validating the frame_len
which could lead to out-of-bounds memory access if the frame_len is
not matching the size of action_hdr.

Add check to validate the frame_len with action_hdr size before doing
mem_cmp for the p2p oui.

Change-Id: I39329d1a9ef45614d3c617db11a7a7f5ec2aaaec
CRs-Fixed: 2101439
2017-09-18 12:21:57 -07:00
snandini
4dc66a5b8b Release 5.2.0.43X
Release 5.2.0.43X

Change-Id: I9b9c9458ad476f97ecd05b852a024d0d4ba65736
CRs-Fixed: 774533
2017-09-18 07:55:50 -07:00
bings
582830a20e qcacld-3.0: Enable preAlloc support for SKB buffers
Enable support to use SKB Buffers allocated during bootup for
low memory targets.

CRs-Fixed: 2106466
Change-Id: Ia55c38767804c5915b9d29d3c61bff236d12cacd
2017-09-18 07:55:49 -07:00
Padma, Santhosh Kumar
4b302b6791 qcacld-3.0: Add support for PNO scan in connected state
qcacld-2.0 to qcacld-3.0 propagation

Add changes to support PNO scan in connected state to find better Ap's
based on rssi threshold, band and rssi preference.

Change-Id: I17f1830c07821b577473fc2d8f50c0867572fe0c
CRs-Fixed: 2012702
2017-09-18 07:55:47 -07:00
Yu Wang
c9ef24f82a qcacld-3.0: use qdf_do_div to do 64 bit division
Use qdf_do_div() for 64 bit division, because '/'
can't be used for 64 bit division on arm32 platform.

Change-Id: I047334565643e695ac343a5da06e030d8e37d7e4
CRs-Fixed: 2110736
2017-09-18 07:55:45 -07:00
snandini
6c4186c36a Release 5.2.0.43W
Release 5.2.0.43W

Change-Id: I4d73ef3332becb0adad1a13ccf162c6f45e6c128
CRs-Fixed: 774533
2017-09-18 01:27:30 -07:00
Ashish Kumar Dhanotiya
83f286bc7a qcacld-3.0: Fix trace level - bitmask mapping
There is an incorrect mapping for trace level - bitmask in api
hdd_qdf_trace_enable trace level is getting started with
QDF_TRACE_LEVEL_FATAL here which should be actually
QDF_TRACE_LEVEL_NONE.

Change-Id: I63e171bf83d3d4f039f7f3170215f036e778de7c
CRs-Fixed: 2110797
2017-09-18 01:27:29 -07:00
snandini
8992c452b2 Release 5.2.0.43V
Release 5.2.0.43V

Change-Id: I664b348581c38ad0beb3a7beff26d59f4e9b3c21
CRs-Fixed: 774533
2017-09-17 21:31:22 -07:00
Zhu Jianmin
e9afed5e17 qcacld-3.0: Fix issue that rx failed after WAPI usk rekey
As WAPI spec, once USK rekey, PN need reset to 0x5c37, but IWNCOM AP
will send 1st packet with old PN larger than 0x5c37 after rekey, So PN
check failed for later packets.
Fix: Don't update Last_PN  when receive the 1st packet from AP after USK
rekey, Last_PN keeps 0x5c37.

Analysis:
1.      Host installed new unicast key after rekey handshake with AP.
2.      Host Last_PN was updated to 0x5c37 as spec (expect PN of next
         packet from AP is: 0x5c39)
3.      Host received ping request from AP with old PN 0x5cb9
4.      Host PN checked passed, driver Last_PN  was updated as 0x5cb9
5.      Host received ping request from AP with new PN 0x5c39
6.      Host PN checked failed since 0x5c39 < 0x5cb9,  ping request
        dropped, no response.

Change-Id: Ifd0269193ffbe53889191269a0e985d13ea2ecf7
CRs-Fixed: 2101217
2017-09-17 21:31:20 -07:00
snandini
ef41a7998e Release 5.2.0.43U
Release 5.2.0.43U

Change-Id: I93cfdc0dbd73e255019e5f1105267b5f8d487a0b
CRs-Fixed: 774533
2017-09-15 21:26:37 -07:00
Deepak Dhamdhere
1e4298f1b2 qcacld-3.0: Send multiple beacon report frames if needed
RRM beacon report scan may find many neighbor BSSIDs on a channel
but it currently sends only 1 beacon report frame with maximum 4
measurement reports. Add a loop to go send all BSSIDs by generating
multiple frames.

CRs-Fixed: 2065920
Change-Id: Iabf889e092b4818ca9c31969eea38e92028209c0
2017-09-15 21:26:37 -07:00
snandini
557ea8ff73 Release 5.2.0.43T
Release 5.2.0.43T

Change-Id: I9b755269a31ff4d4449d972486638fa40ff7f320
CRs-Fixed: 774533
2017-09-15 17:26:53 -07:00
yeshwanth sriram guntuka
6d261f883f qcacld-3.0: Set join failure timeout value in bss config
Join failure timeout value is set to 10 times beacon
interval. If 10 times beacon interval is greater than
max join failure timeout value, global join failure
timeout cfg value is not set which results in connection
failure.

Set join failure timeout value in bss config to the
default join failure timeout value if 10 times beacon
value exceeds default value.

Change-Id: I835256ba07a714cb0606c6e90964475fc112c4b4
CRs-Fixed: 2100633
2017-09-15 17:26:53 -07:00
snandini
91bf0ce76a Release 5.2.0.43S
Release 5.2.0.43S

Change-Id: I632a76cf0631e6f1e60a6aaf9bb15743f514f00a
CRs-Fixed: 774533
2017-09-14 17:39:38 -07:00
Ganesh Kondabattini
408fb8d91f qcacld-3.0: Add ini parameter to enable SAP mandatory chan list
Add ini parameter to enable/disable SAP mandatory chan list

CRs-Fixed: 2089093
Change-Id: Ic756e7700187a40024f7cca620e703d0179f5583
2017-09-14 17:39:36 -07:00
snandini
78b8eaccff Release 5.2.0.43R
Release 5.2.0.43R

Change-Id: Ia73680c0fb4aa3448813170aaad62d0f4653a1c8
CRs-Fixed: 774533
2017-09-14 15:41:52 -07:00
Dustin Brown
0bec9a9259 qcacld-3.0: Prepend kernel includes with "kernel/"
To avoid include conflicts, prepend all kernel includes with "kernel/"

Change-Id: I8a3f037c4abf07b129875b919225825701dc1046
CRs-Fixed: 2094774
2017-09-14 15:41:51 -07:00
snandini
c3beac6cfa Release 5.2.0.43Q
Release 5.2.0.43Q

Change-Id: I1c4985febf11d0228ed731206ed49a6e61863393
CRs-Fixed: 774533
2017-09-14 13:26:40 -07:00
Alok Kumar
d42a682bd7 qcacld-3.0: Compile errors when a preprocessor flag is on
Fix for compile errors when QDF_DEBUG is enabled.

Change-Id: I1c8235436ddb4c3f5cd5c33284f5acba6b0b3400
CRs-Fixed: 2022666
2017-09-14 13:26:39 -07:00
Varun Reddy Yeturu
061d4d63e4 qcacld-3.0: Introduce INI items for MAWC based roaming
Introduce the following items in WCNSS_qcom_cfg.ini for
user to modify them for MAWC based roaming.

mawc_roam_enabled
mawc_roam_traffic_threshold
mawc_roam_ap_rssi_threshold
mawc_roam_rssi_high_adjust
mawc_roam_rssi_low_adjust

Change-Id: Ief51e3e91603bfd7f6c6deed3ca48bc717b2b6fb
CRs-Fixed: 2081413
2017-09-14 13:26:37 -07:00
snandini
f138fca373 Release 5.2.0.43P
Release 5.2.0.43P

Change-Id: I7f1bf47acb5c83ba2a16c93a5492499f7d3c923a
CRs-Fixed: 774533
2017-09-14 11:28:20 -07:00
Jeff Johnson
7d56227ba8 qcacld-3.0: Remove cds_context param to cds_sched_close()
Currently cds_sched_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: Ic7ceb85653acd2acdb700ae9d2ef15f4e09b81c7
CRs-Fixed: 2109435
2017-09-14 06:51:58 -07:00
Jeff Johnson
30f8455ee1 qcacld-3.0: Remove cds context from struct sAniGetTsmStatsReq
Currently struct sAniGetTsmStatsReq contains a p_cds_context field,
but this field is unused. Remove the field along with all of the code
that is present to populate it.

Change-Id: I1335034b959b77223834d7cf77e33c1f9bd1b358
CRs-Fixed: 2109433
2017-09-14 06:51:58 -07:00
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