Commit Graph

6602 Commits

Author SHA1 Message Date
Himanshu Agarwal
88ec24f2d8 qcacld-3.0: Memzero htt_frag_desc before use
Presently, htt_frag_desc is not getting zeroed out explicitly.
So fw can take the invalid/garbage data in the frag information
and treat it as a valid address which may lead to crash.

Memzero htt_frag_desc before use.

Change-Id: I9dadcb883a65c43f96e810a12b4fb491c3a2e734
CRs-Fixed: 2088448
2017-09-26 17:52:30 -07:00
Himanshu Agarwal
10b44364a0 qcacld-3.0: Fill channel width when selected channel is invalid
When no channel is selected from ACS and fallback channel
is invalid, a default channel is selected but the channel
width remains invalid due to which ASSERT is happening.

Whenever default channel is selected, select default channel
width of 20 MHz as well.

Change-Id: I885e01d1324484b84e04675238d2e1f8cd10e30c
CRS-Fixed: 2112806
2017-09-26 17:52:27 -07:00
Himanshu Agarwal
8d4cf47ffb qcacld-3.0: Add logic to mark first wakeup packet without offload bit set
Add logic to mark first wakeup packet even if offload bit is not set in
the htt rx indication message sent by fw.

Change-Id: Ide50dcfcf88ecd0c71b32b0e746742dc49d08567
CRs-Fixed: 2110627
2017-09-26 17:52:24 -07:00
Ashwini Patil
f2bf05e548 qcacld-3.0: Add ini items used in mbo bss transition context
Add ini items for current and candidate rssi thresholds used in
mbo bss transition context.

Change-Id: I834c87aaaf776cdc293718fb994b4aae38af6a8b
CRs-Fixed: 2007107
2017-09-26 17:52:21 -07:00
Hanumanth Reddy Pothula
788a37e3c1 qcacld-3.0: init/deinit bug report lock appropriately
During initialization, bug report lock is initialized after logger
thread is created and during deinitialization, bug report lock is
destroyed before logger thread exits. As logger thread uses this
lock there is a possibility of logger thread to access uninitialized
lock.

To mitigate this issue initialize/deinitialize lock after/before
creating logging thread.

Change-Id: I973c9b6c7eed38cbbc09258a54e587078ddb37e1
CRs-Fixed: 2094510
2017-09-26 17:52:19 -07:00
snandini
5c90049395 Release 5.2.0.45F
Release 5.2.0.45F

Change-Id: I8b5259401e0b5f80297c07704725d0480883cb4b
CRs-Fixed: 774533
2017-09-26 12:23:52 -07:00
Sandeep Puligilla
4b0dcf7363 qcacld-3.0: Initialize scan param structure
Device crashed while accessing the unintialized
memory as part of scan request processing.

Initialize the scan params structure to zero.

Change-Id: Iaf430c6edb485a009f8d932ce0c2d033b9ec6137
CRs-Fixed: 2116256
2017-09-26 12:23:51 -07:00
snandini
d57a2aeacf Release 5.2.0.45E
Release 5.2.0.45E

Change-Id: I9f3a093c2447525bea95dc4ee2d08143e7e29bf3
CRs-Fixed: 774533
2017-09-26 09:38:41 -07:00
Yeshwanth Sriram Guntuka
52bc6bbccc qcacld-3.0: Remove unnecessary kernel message
Moved unnecessary kernel message to debug logs where ever not
required in kernel logs

Change-Id: If7b69fbdc4afea4597d38a44f786ee221ee917b2
CRs-Fixed: 2042092
2017-09-26 09:38:41 -07:00
snandini
e0d648996d Release 5.2.0.45D
Release 5.2.0.45D

Change-Id: Ie91883a9819800182f2b0f1dbda9bbf2215d9dc9
CRs-Fixed: 774533
2017-09-25 23:42:44 -07:00
Arunk Khandavalli
bbc301f619 qcacld-3.0: Free the allocated beacon memory in start_bss failure
As part of start_ap new beacon memory is allocated and filled with
the parameters sent by the upper layer. If there is any failure
during the start the bss, the memory is not freed resulting in
the leak.

Free the allocated beacon memory if there is any failure in starting
the bss.

Change-Id: Idc263ffbb352e56d65d397b200facb23b7ab207c
CRs-fixed: 2033325
2017-09-25 23:42:44 -07:00
Will Huang
ebfd91b33f qcacld-3.0: Enable IRAM Dump
qcacld-2.0 to qcacld-3.0 propagation

Cleanup target dump code and add support to dump IRAM region
for different platforms. Update the Target Memory Region for
different platforms.

Change-Id: Ie29fb62e0f1bc279311f77400e8be490ccf987a4
CRs-Fixed: 2088394
2017-09-25 23:42:41 -07:00
snandini
c2c177123b Release 5.2.0.45C
Release 5.2.0.45C

Change-Id: If78e39e37939af08c16bdcf3167b49514a019a34
CRs-Fixed: 774533
2017-09-25 21:56:58 -07:00
Jeff Johnson
c13bfe08ca qcacld-3.0: dp: Replace instances of unadorned %p
Replace instances of unadorned %p in core/dp.

Change-Id: I7baa3ecc4f9964c47261dafa26116447fc7611b5
CRs-Fixed: 2100997
2017-09-25 21:56:58 -07:00
Jeff Johnson
11bd4f3c42 qcacld-3.0: mac: Replace instances of unadorned %p
Replace instances of unadorned %p in core/mac.

Change-Id: Id9b15d369dda7660f292e6c961b25d2e8270b141
CRs-Fixed: 2100997
2017-09-25 21:56:56 -07:00
Jeff Johnson
a7c0ddb8c1 qcacld-3.0: sap: Replace instances of unadorned %p
Replace instances of unadorned %p in core/sap.

Change-Id: I37a803518430313d360d10e429469fa7bb471b78
CRs-Fixed: 2100997
2017-09-25 21:56:54 -07:00
Jeff Johnson
c83eca9924 qcacld-3.0: sme: Replace instances of unadorned %p
Replace instances of unadorned %p in core/sme.

Change-Id: I8176263cf21ec7281dd5ebbaecbe1c8568465a37
CRs-Fixed: 2100997
2017-09-25 21:56:51 -07:00
Jeff Johnson
adba396c07 qcacld-3.0: wma: Replace instances of unadorned %p
Replace instances of unadorned %p in core/wma.

Change-Id: I44a975caa73f0837274536babf1902bef06c591a
CRs-Fixed: 2100997
2017-09-25 21:56:49 -07:00
snandini
35a71d956b Release 5.2.0.45B
Release 5.2.0.45B

Change-Id: I3347246bd4bf37fdbb723182bb1ebf492554ba3c
CRs-Fixed: 774533
2017-09-25 13:21:50 -07:00
Deepak Dhamdhere
a7987a2ed1 qcacld-3.0: Reset and update session nss value after roaming
In LFR3 roaming, session->nss is recomputed by starting with mac_ctx
configured value, then lim_fill_ft_session() trims it based on
AP's capability in the beacon. Then lim_ft_prepare_add_bss_req() modifies
it based on dot11mode if necessary.

CRs-Fixed: 2082240
Change-Id: If9841ea8d10cc1269ec118c9e7f75fa0444abe3e
2017-09-25 13:21:49 -07:00
snandini
53cdaeee3b Release 5.2.0.45A
Release 5.2.0.45A

Change-Id: I980732ea585f18f3d22c8ebf9f51bc810704758e
CRs-Fixed: 774533
2017-09-25 11:22:13 -07:00
Vignesh Viswanathan
82bd2539c9 qcacld-3.0: rate limit logs from HDD during scan and connect
Currently logs are printed from HDD during scan and connect for every
retry, which is causing MCThread to get stuck at printk and crash

Rate limit the hdd logs to print for every 5 retries to avoid filling
the log buffer. Also change some error logs to debug level.

Change-Id: I09ad38cd89bbd20081673142bf5a350c55b0f005
CRs-Fixed: 2090761
2017-09-25 11:22:13 -07:00
Naveen Rawat
27f1c544d6 qcacld-3.0: Fix Integer overflow with latest framesc_linux tool
This is qcacld-2.0 to qcacld-3.0 propagation

In get_container_ies_len size type for len is uint8_t.
len copies values from pBufRemaining.
There can be chance for integer overflow.
To avoid that make size type for len as uint32_t.

Change-Id: I305321a6631719808ef213571974ae23b0e61bb3
CRs-Fixed: 2064580
2017-09-25 11:22:11 -07:00
Arunk Khandavalli
ae44d897dd qcacld-3.0: Reduce redundant logs during driver initialization
With the latest logging guidelines info logs will be routed to
console there are lot of redundant logs causing the watchdog
bark during driver initialization.

Reduce the loglevel from info to debug so these will be logged via
Loggerapp.

CRs-Fixed: 2040730
Change-Id: I2f073e3ab2fe9c129867cadd54c9f27a6b0e65c8
2017-09-25 11:22:09 -07:00
snandini
f1ee5ea5c9 Release 5.2.0.45
Release 5.2.0.45

Change-Id: I31b26aed1904a18f27d5b44f05e08b6df8326b9f
CRs-Fixed: 774533
2017-09-25 09:21:56 -07:00
Ashish Kumar Dhanotiya
52def21a51 qcacld-3.0: Pass frequency to ieee80211_get_channel API
In hdd_send_re_assoc_event api to get ieee80211_channel,
channel number is passed to ieee80211_get_channel kernel
API which expect frequency as an argument.

Pass frequency to ieee80211_get_channel API instead of
channel number.

CRs-fixed: 2053536
Change-Id: I216889d13252c56e817c4e09e77459cc38f8e9ec
2017-09-25 09:21:56 -07:00
snandini
5cc34cbaec Release 5.2.0.44Z
Release 5.2.0.44Z

Change-Id: I0b95aadcb445288d9ec62a776152ca2acd97b021
CRs-Fixed: 774533
2017-09-25 08:03:56 -07:00
Vignesh Viswanathan
2eb18748b8 qcacld-3.0: Clear FILS connection info only for STA Mode
Currently hdd_clear_fils_connection_info is called for all device
modes which is leading to crash in SAP mode due to illegal memory
access.

Add check to invoke hdd_clear_fils_connection_info only if the
device mode is STA.

Change-Id: Ia0e28c29d809865169c254b0d45013aad39e13d2
CRs-Fixed: 2106324
2017-09-25 08:03:56 -07:00
snandini
816aae75af Release 5.2.0.44Y
Release 5.2.0.44Y

Change-Id: I02b13a29b307290a9719dbf82ed1ecc849058d16
CRs-Fixed: 774533
2017-09-25 07:22:09 -07:00
Mukul Sharma
81d9f334e5 qcacld-3.0: Prevent memory leak in wlan_hdd_cfg80211_ocb_set_config
Currently, Host performs validation of NLA attribute
QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY twice
which leads to memory leak.

As a part of fix, Check for SET_CONFIG_CHANNEL_ARRAY
only once and free memory in error scenario.

Change-Id: I5c90c937682417b8181fda7d499908b9425d4c6a
CRs-Fixed: 2103954
2017-09-25 07:22:09 -07:00
Kabilan Kannan
c0e3d58f2a qcacld-3.0: Enable Napier TDLS data path
Enable TDLS datapath for napier platform

Change-Id: Id907ab327938a6a9099ce4d02fee49168139d089
CRs-Fixed: 2114824
2017-09-25 07:22:07 -07:00
Yeshwanth Sriram Guntuka
b90968f805 qcacld-3.0: Set ft_carrier_on to false on roam abort
When host receives roam sync indication from firmware
and if state in PE is not equal to eLIM_SME_LINK_EST_STATE
then roam is aborted. As part of eCSR_ROAM_FT_START,
ft_carrier_on flag is set to true but is not set to false
as part of roam abort handling in hdd_sme_roam_callback api.
This results in not sending subsequent connect result to nl.

Fix is to set ft_carrier_on to false on roam abort.

Change-Id: I43c65730fd439145c22dbf77b0deb47a1bf2ef45
CRs-Fixed: 2105072
2017-09-25 07:22:05 -07:00
Mukul Sharma
495df60861 qcacld-3.0: Prevent NS offload when active offload is disabled
Currently, Host configures the NS entries through vendor command
where host do not check the active offload is enable or disabled.
Hence it is not configuring according to active offload ini.
As part of fix, Cache the vendor command value and check whether
active offload is enabled or not before configuration to fwr.

Change-Id: Icb11e43198a75975418a2c9ed95d5f1df05ce0c5
CRs-fixed: 2105071
2017-09-25 07:22:03 -07:00
Zhu Jianmin
62e119634c qcacld-3.0: Avoid issue that NULL constant is dereferenced
NULL constant is unsuitable for sapEvent parameter since following
may be called:
        sapEventInit(sapEvent);
        vosStatus = sapFsm(sapContext, sapEvent);

Change-Id: I2ffc1be27f96bcbd793b2302e6c5920b5d30073b
CRs-Fixed: 2111290
2017-09-25 07:22:01 -07:00
Arunk Khandavalli
794fdfce82 qcacld-3.0: Print the macaddress after the LA is reset
Presently in the sta mode locally administered  is set and it
is not logged with new macaddress.

Print the macaddress of the STA once the LA bit is reset.

Change-Id: I5ab5c67c622723f32500bc07d815efb02bd834a7
CRs-Fixed: 2069219
2017-09-25 07:21:59 -07:00
snandini
d51e7260dc Release 5.2.0.44X
Release 5.2.0.44X

Change-Id: If88f06fb9b76165390d7fc200b7b6346805121d3
CRs-Fixed: 774533
2017-09-25 05:43:06 -07:00
Vignesh Viswanathan
56f262563b qcacld-3.0: Add sanity check to limit mgmt frames data len
Currently the mpdu_data_len in Rx pkt meta is not checked for
upper bound in wma_form_rx_packet.

Add sanity check to drop the packet if mpdu_data_len is
greater than 2000 bytes. Also add upper bound check for
frame_len in lim_process_auth_frame function.

Change-Id: I7ab454045e2f6d278351dcabde6da556f9f741e0
CRs-Fixed: 2093392
2017-09-25 05:43:05 -07:00
yeshwanth sriram guntuka
5c71a29b34 qcacld-3.0: Set length of challenge text sent by SAP to 128
SIR_MAC_AUTH_CHALLENGE_LENGTH is updated to 253 from
128 as per IEEE spec due to connection fails between
DUT-SAP and old ref-STA. Auth failure occurs as encrypted
data sent by ref-STA is only 128 bytes instead of 253
bytes.

Fix is to set length of challenge text sent by SAP
to 128 bytes.

Change-Id: I81409bb58ad34e469c54e2909f45b8a6826eb06a
CRs-Fixed: 2096512
2017-09-25 05:43:03 -07:00
snandini
e231f370da Release 5.2.0.44W
Release 5.2.0.44W

Change-Id: I5f64b50826f9e5814383e4741b8708579c3ded35
CRs-Fixed: 774533
2017-09-25 03:22:03 -07:00
Will Huang
2788dcf8f2 qcacld-3.0: Init cap before use it
In function ol_configure_target cap is used uninitialized when call
pld_get_platform_cap fail, although pld_get_bus_type and
hif_get_bus_type return same bus type, so actually it has no issue here,
but it look not clear here, init it explicitly.

Change-Id: I001956521c62c14b3537b399bbca1791b274a4c7
CRs-Fixed: 2115553
2017-09-25 03:22:03 -07:00
snandini
22f15d7957 Release 5.2.0.44V
Release 5.2.0.44V

Change-Id: I0c355d986aacd0ef06545efc7c7329797b14d30a
CRs-Fixed: 774533
2017-09-24 01:21:50 -07:00
Sandeep Puligilla
d9f88ce8d0 qcacld-3.0: Don't defer beacon and probe response in LIM
Don't defer beacon and probe response in LIM

Change-Id: I92c31f6eb2c4ce2d4f5ddf67684f4042c90108dd
CRs-Fixed: 2033037
2017-09-24 01:21:49 -07:00
Sandeep Puligilla
1426d619f3 qcacld-3.0: Process assoc indication in sme callback
In a noisy enviornment assoc indication in SME queueu
is not getting processed due to multiple beacons/probes
getting processed in PE queue which is high priority
than SME queue.

Instead of posting a message to SME queue, assoc indication
will run to completion using sme callback mechanism.

Change-Id: I4dc7e3ef0c91964ebc842afa38b7815464e0e406
CRs-Fixed: 2114425
2017-09-23 20:44:30 -07:00
snandini
7b797a73b2 Release 5.2.0.44U
Release 5.2.0.44U

Change-Id: I964a4619e9e3a42cbc251382b2c535132d3e214a
CRs-Fixed: 774533
2017-09-23 05:21:27 -07:00
Ganesh Kondabattini
3bf9efe42a qcacld-3.0: Make sure that peer exists before updating peer state
Before sending tdls peer state update command to FW make sure
that tdls peer exists.

Change-Id: I26b5daf9896b0f57fbcfedadcabd67ddd000b257
CRs-Fixed: 2032770
2017-09-23 05:21:26 -07:00
snandini
3a08098da9 Release 5.2.0.44T
Release 5.2.0.44T

Change-Id: I61192ce8a2ff59fde8f2872a66299d71ff86ca33
CRs-Fixed: 774533
2017-09-23 01:34:00 -07:00
Dustin Brown
d551143bef qcacld-3.0: Convert nla_parse to hdd_nla_parse
In order to support multiple nla_parse function signatures across
different kernel versions, a new hdd_nla_parse wrapper was introduced.
However, some propagations were made that reintroduced nla_parse.
Convert these calls to nla_parse to hdd_nla_parse instead.

Change-Id: Ib60d51252d943c59648682fb2794c3dcbae7cbf4
CRs-Fixed: 2113637
2017-09-23 01:33:59 -07:00
snandini
d565ecc3af Release 5.2.0.44S
Release 5.2.0.44S

Change-Id: If0c0853b7581eaa427912bacaf4079673ad6b88d
CRs-Fixed: 774533
2017-09-22 18:39:25 -07:00
Kiran Kumar Lokere
951bad85e6 qcacld-3.0: Do not restart PS timer if PS check fails
Power save checks for user configuration and STA connection state,
if either of these fails then do not restart the auto power save
timer.

Change-Id: I83a337b828677464c74800adf690c00fda68fadc
CRs-Fixed: 2112585
2017-09-22 18:39:23 -07:00
snandini
b7532358e5 Release 5.2.0.44R
Release 5.2.0.44R

Change-Id: Ibe6291263fab7960c3ca33de123b2dcdb46cec76
CRs-Fixed: 774533
2017-09-22 18:39:21 -07:00
Yue Ma
096189d513 qcacld-3.0: Properly handle uevent for PCIe devices
When uevent is introduced for integrated devices, it breaks
the PLD handling for PCIe devices. Hence correct it by using
proper enum.

Change-Id: Iacb5037932065f1822c1408d74f8aa3824ff0e71
CRs-fixed: 2114385
2017-09-22 18:39:18 -07:00
snandini
f2ba5ffe8b Release 5.2.0.44Q
Release 5.2.0.44Q

Change-Id: Ia4dff2d38fc91ac7a4ab18b7d55b5d6b79ffd8ac
CRs-Fixed: 774533
2017-09-22 18:39:16 -07:00
yeshwanth sriram guntuka
64447aa882 qcacld-3.0: Send default ies in scan request to fw
On framework initiated scan, ies are not sent in
scan request from upper layer and default scan ies are
not sent as part of scan request sent to firmware. This
results in not including oce ie in probe requests for
framework initated scans

Fix is to copy default ies to ie field in scan request
sent to firmware.

Change-Id: I895563bafc2a2b6e483d08cb28ee44ad34f5af70
CRs-Fixed: 2087124
2017-09-22 18:39:13 -07:00
yeshwanth sriram guntuka
ea63f63861 qcacld-3.0: Send default scan ies to fw after PDR
Default scan ies are sent to fw after interface
is up via set wifi configuration vendor subcommand.
In case of PDR, default ies are not sent again to
fw.

Fix is to send default scan ies to fw after PDR.

Change-Id: Ia42f5b49711ec77b84ae3031aa7998283c1d4ec8
CRs-Fixed: 2100739
2017-09-22 18:39:10 -07:00
snandini
98cd54024c Release 5.2.0.44P
Release 5.2.0.44P

Change-Id: I75d76206215f4854ee21b832263856a93c574f2e
CRs-Fixed: 774533
2017-09-22 18:39:08 -07:00
Jeff Johnson
a0fa814f93 qcacld-3.0: Remove pStaAddIE from the SAP context
Currently the SAP has logic to extract and locally save a collection
of Additional IEs. But this is legacy code inherited from a version
of the driver that supported in-driver SAP, and now the SAP
functionality is handled primarily by hostapd. Since this local copy
of the Additional IEs is never used, remove it.

Change-Id: I9bb1f7d44dfdeb4c908016aad365ee1b94a97b29
CRs-Fixed: 2114375
2017-09-22 18:39:06 -07:00
Jeff Johnson
dba35543b8 qcacld-3.0: Remove pStaWapiReqIE from the SAP context
Currently the SAP has logic to extract and locally save the WAPI
IE. But this is legacy code inherited from a version of the driver
that supported in-driver WAPI, and now the SAP WAPI functionality is
handled by hostapd. Since this local copy of the WAPI IE is never
used, remove it.

Change-Id: I57cad0d8e44ff1ca5a7a61454a21aac61bf873c0
CRs-Fixed: 2114153
2017-09-22 18:39:03 -07:00
Mohit Khanna
31776f8b90 qcacld-3.0: Fix data rate for beacon frames
Currently, in monitor mode, beacon frames are showing an incorrect phy
rate (0). This is because the values in the RX descriptor for
interpreting the legacy rates have changed in ihelium.

Make changes in host to interpret the new values into data rates correctly.

Change-Id: Ibf845666943fd718b657c0128758dabfb64a38ef
CRs-Fixed: 2082456
2017-09-22 18:36:09 -07:00
snandini
4a084bdc6d Release 5.2.0.44O
Release 5.2.0.44O

Change-Id: Iee2423a60f1e83ff394362f43a6a6755eb3e34cc
CRs-Fixed: 774533
2017-09-21 20:18:04 -07:00
Vignesh Viswanathan
66c951d567 qcacld-3.0: Dump disconnect stats
Add a new dumpStats parameter (25) to dump disconnect stats.
The following command will dump disconnect Stats into QXDM.
>iwpriv wlan0 dumpStats 25

Change-Id: I0908c947b5c829f51b087871ad11d5674908dca2
CRs-Fixed: 2058958
2017-09-21 20:18:04 -07:00
snandini
a129501c7d Release 5.2.0.44N
Release 5.2.0.44N

Change-Id: Id55a799e119e7e0c0f4adc25ace1049f385c5de9
CRs-Fixed: 774533
2017-09-21 19:07:34 -07:00
Yun Park
777d724e77 qcacld-3.0: HDD IPA event handler waits resource load/unload complete
There is a race condition bewteen CLIENT_DISCONNECT and AP_DISCONNECT,
which causes short HDD IPA interfaces, so AP_CONNECT failed afterward.
HDD IPA event handler waits IPA resource load/unload complete.
Once timed out, add the event in a pending queue for loading icase or
ignore it for unloading case.
Remove redundant CLIENT_DISCONNECT event from del_sta.

Change-Id: I671ecec6f236d52a1b51cb78b9c7466f2cde82aa
CRs-Fixed: 2027714
2017-09-21 19:07:33 -07:00
Dustin Brown
76b9212c95 qcacld-3.0: Convert ieee80211_band to nl80211_band
In order to support Linux kernel versions 4.7+, nl80211_band must be
used instead of ieee80211_band. Convert all usages of ieee80211_band
to nl80211_band.

Change-Id: Iaf7a1efbaf54166b4d6e52a0d6b68b32c871028b
CRs-Fixed: 2114157
2017-09-21 19:07:30 -07:00
snandini
5bdd9f7c57 Release 5.2.0.44M
Release 5.2.0.44M

Change-Id: I5bf815dd8d93861e162b690247b393b98e7957d3
CRs-Fixed: 774533
2017-09-20 22:58:28 -07:00
Jeff Johnson
29adc0738b qcacld-3.0: Remove APWPSIEs from the SAP context
The SAP no longer maintains WPS information internally and the
APWPSIEs struct in the SAP context is no longer referenced, so remove
it.

Change-Id: If4a30626913fdacb751a434458a2e3918665a352
CRs-Fixed: 2113553
2017-09-20 22:58:28 -07:00
snandini
3ee375c575 Release 5.2.0.44L
Release 5.2.0.44L

Change-Id: Ie95b726bb3534c6f751fbadc3431184d98e723bc
CRs-Fixed: 774533
2017-09-20 22:09:18 -07:00
Jeff Johnson
6c8e31255c qcacld-3.0: Remove SapGlobalLock infrastructure
Change "qcacld-3.0: Remove obsolete wlansap_get_wps_state()" removed
the last consumer of the SapGlobalLock infrastructure. Since this
infrastructure is now unused, remove it.

Change-Id: I4646a7796073b259351d8cff48a424ef8741c9cf
CRs-Fixed: 2113552
2017-09-20 22:09:17 -07:00
Mahesh Kumar Kalikot Veetil
ec1da142e7 qcacld-3.0: Fix interface name in logs
Some of the logs wrongly use dev->ifindex to print net device name. Fix
those prints with correct device name.

Change-Id: I0cd7cbadcc69cafa05207578b66a2e07ce9e0f4e
CRs-Fixed: 2113484
2017-09-20 22:09:14 -07:00
snandini
49b882b545 Release 5.2.0.44K
Release 5.2.0.44K

Change-Id: Ie4fd56cb2c58dc2a3def8a1319786869de019599
CRs-Fixed: 774533
2017-09-20 21:27:13 -07:00
Rajeev Kumar
7f28e8a30f qcacld-3.0: Add adapater validity check for get NUD stats command
Add adapter validity check for get NUD stats vendor command such that
after adapter down/close request is not sent down to FW over WMI which
can trigger FW assert.

Change-Id: Ia4809ce50f131d2a85e668681711d89c985203a0
CRs-Fixed: 2098149
2017-09-20 21:27:13 -07:00
Jeff Johnson
8b8d03d533 qcacld-3.0: Remove obsolete wlansap_get_wps_state()
Currently in hdd_hostapd_sap_event_cb() when processing the
eSAP_STA_ASSOC_EVENT and eSAP_STA_REASSOC_EVENT events a call is made
to wlansap_get_wps_state(). This is a legacy call inherited from a
version of the driver that supported in-driver WPS. But now that WPS
is handled by hostapd this functionality is obsolete and should be
removed.

Change-Id: Ia52d9554ed4b3a44726a4cac268eae77856cbd18
CRs-Fixed: 2113551
2017-09-20 21:27:10 -07:00
Zhang Qian
6339310b98 qcacld-3.0: Change policy for QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG
Change attribute type in policy to NLA_UNSPEC, so nla API will take
a more strict length check.

Change-Id: I9faf60702a9efba5e76fb1e82c7b020812687cad
CRs-Fixed: 2092378
2017-09-20 21:27:07 -07:00
snandini
bdf242ccb7 Release 5.2.0.44J
Release 5.2.0.44J

Change-Id: I6b2a199d78576cc8e88abe56db98a1a0ba05c023
CRs-Fixed: 774533
2017-09-20 19:56:55 -07:00
Vignesh Viswanathan
c018e98d72 qcacld-3.0: Add new ini for bad RSSI 2G to 5G roam offset
Add new WCNSS_qcom_cfg.ini item to configure offset from bad RSSI
threshold ini for 2G to 5G band roam. This offset is used to
calculate the RSSI to be used as trigger for device to roam from
2G to 5G band when it is connected to a bad RSSI 2G AP and a 5G AP
is available in the environment.

New ini added : roam_bad_rssi_thresh_offset_2g

Change-Id: If2285317d1d01bb2faae2cf1928ad7adae8204d4
CRs-Fixed: 2105894
2017-09-20 19:56:53 -07:00
Jeff Johnson
0f41e16b1e qcacld-3.0: Remove obsolete SAP WPSIE structs
struct sap_WPSIE_s, as well as the structs it contains, were inherited
from a prior version of the driver where SAP WPS was implemented in
the driver. Since SAP WPS is now handled by hostapd these structs are
unused, so remove them.

Change-Id: Iabdd7f3b83668cb203614353b4766fb0b40fbd05
CRs-Fixed: 2110167
2017-09-20 07:59:01 -07:00
snandini
46df41c0d2 Release 5.2.0.44I
Release 5.2.0.44I

Change-Id: I01918d90692c9e44a482bdcb87a609501e08a0c5
CRs-Fixed: 774533
2017-09-20 06:22:07 -07:00
Anurag Chouhan
3920c0f714 qcacld-3.0: Add Vendor command to set/get NUD debug stats
Add vendor commands to set/reset and get NUD debug stats
from firmware.

Change-Id: I773c04bb3f7c6d5ed28528cf2174b3d63de57d98
CRs-Fixed: 2011456
2017-09-20 06:22:06 -07:00
Jeff Johnson
16caea59fb qcacld-3.0: bmi: Replace instances of unadorned %p
Replace instances of unadorned %p in core/bmi.

Change-Id: I5dfdaa536da2c46d6180f74857e7518198bb43f7
CRs-Fixed: 2100997
2017-09-20 06:22:00 -07:00
Jeff Johnson
36e74c4212 qcacld-3.0: hdd: Replace instances of unadorned %p
Replace instances of unadorned %p in core/hdd.

Change-Id: I32b89aaf6a8b1ca3177e0c1cb5cec5fbc5f5294a
CRs-Fixed: 2100997
2017-09-20 06:21:58 -07:00
Jeff Johnson
359e679fb1 qcacld-3.0: pld: Replace instances of unadorned %p
Replace instances of unadorned %p in core/pld.

Change-Id: I949474a148429d14587864e6fa3ce5c71d2ceb92
CRs-Fixed: 2100997
2017-09-20 06:21:55 -07:00
hqu
16d6e08812 qcacld-3.0: Calculate supported rates according to different case
Fix the regression issue introduced by change
"Change-Id: Ica336398865a8b5e16297e4555dbb7de5e79567e".
The issue is that it will always include driver default rates.

In some case it only needs to calculate supported rates from hostapd.conf
file. Define ini item gChanSwitchHostapdRateEnabled to configure supported
rates calculated from hostapd.conf file or driver default rates when doing
SAP channel switch.

Change-Id: I45eeea5134dd80929bdd1f61246bdc66e1857e22
CRs-fixed: 2103714
2017-09-20 06:21:53 -07:00
snandini
a0e5b59824 Release 5.2.0.44H
Release 5.2.0.44H

Change-Id: I7d5194e017b5ec0625d2331e5d5842181fb3759b
CRs-Fixed: 774533
2017-09-20 04:40:26 -07:00
Varun Reddy Yeturu
81d0b373f3 qcacld-3.0: Check for valid pdev in wma_wait_tx_complete
Check for the validity of the pdev in wma_wait_tx_complete
before using it.

Change-Id: I3a98b4092aff42ea9c92490488cba5960b8e3b58
CRs-Fixed: 2111293
2017-09-20 04:40:26 -07:00
hqu
3c4ed3d9bd qcacld-3.0: Allow multi beacon interval in concurrent AP cases
qcacld-2.0 to qcacld-3.0 propagation

Current driver implementation doesn't support the multi beacon
interval in case concurrent AP's are operating on the same
channel. A new parameter 'beacon_int_min_gcd' is added in the
kernel to support the multi beacon interval.

Updating parameter 'beacon_int_min_gcd' to support multi beacon
interval. Related changs are
"Change-Id: I997059f0cad77b914a1296ffe7f1a51a511adac2" and
"Change-Id: Ibd2557080521276aa86a83089dfaa9b445de05af".

Change-Id: Iaa1bf7b7ead05bb400fbd8e28ef3fc1309c6b567
CRs-Fixed: 2111272
2017-09-20 04:40:22 -07:00
Himanshu Agarwal
c422ca7c04 qcacld-3.0: Copy the contents of auth frame properly
Copy the contents of auth frame in a proper manner
in lim_send_auth_mgmt_frame().

Change-Id: I5197634e36fa5b4344fc71fc22e1de6a2147744d
CRS-Fixed: 2112170
2017-09-20 04:40:20 -07:00
snandini
e1c8d9f953 Release 5.2.0.44G
Release 5.2.0.44G

Change-Id: Ib79fff45fe20fc2a597508c3d0f6d8ed158a6ecc
CRs-Fixed: 774533
2017-09-20 03:01:43 -07:00
Amar Singhal
5238567d80 qcacld-3.0: Change sequence of programming dfs region
At init time, program DFS region before programming the init
channel list. Programming DFS region would also initialize the
channel map.

CRs-Fixed: 2104133
Change-Id: I0ab3607d020086d226a99814dada5ac820880f1f
2017-09-20 03:01:43 -07:00
snandini
456883b645 Release 5.2.0.44F
Release 5.2.0.44F

Change-Id: I0622a20f733a637ec39fa0779fc6a8b72801855a
CRs-Fixed: 774533
2017-09-19 15:52:54 -07:00
Ravi Joshi
a307f63059 qcacld-3.0: Enable monitor mode through con_mode_monitor
Enable napier monitor mode through con_mode_monitor
module parameter passed during the driver load.

Change-Id: I85c7d8fad2c8c56f87e2d6f076cd573fe5953269
CRs-Fixed: 2110208
2017-09-19 15:52:54 -07:00
snandini
a755ed9a36 Release 5.2.0.44E
Release 5.2.0.44E

Change-Id: I9603a53832686cf2d7679166c85290294ce8cba0
CRs-Fixed: 774533
2017-09-19 09:59:39 -07:00
Wu Gao
478282a8d0 qcacld-3.0: Check radio id for FW event
In Rome platform, it use invalid radio id in FW event
WMI_RADIO_TX_POWER_LEVEL_STATS_EVENTID and cause crash. So check
radio id when handling this event.

Change-Id: Id720ca94ef496ea883f5ba1848fb4e28af57002f
CRs-Fixed: 2112322
2017-09-19 09:59:37 -07:00
snandini
f4c2d4e4db Release 5.2.0.44D
Release 5.2.0.44D

Change-Id: I3a058972ba39ed569437af5e12721812188da9cf
CRs-Fixed: 774533
2017-09-19 04:18:35 -07:00
Jiachao Wu
712d4fd6a6 qcacld-3.0: Send beacon tx rate to firmware
Add data structures to save beacon tx rate.
The beacon data rate is multiples of 100 Kbps.
Firmware expects the data rate in the form of hw rate codes.
So convert the data rates to hw rate code.
And send it to firmware.

Change-Id: Ia39fd4c14defa729f75f2c45748fe5b04b909647
CRs-Fixed: 2099052
2017-09-19 04:18:34 -07:00
snandini
2cc96b1146 Release 5.2.0.44C
Release 5.2.0.44C

Change-Id: I6c28fb1f9c8d6ebd7419d9c199a1deb22508f239
CRs-Fixed: 774533
2017-09-19 02:28:37 -07:00
SaidiReddy Yenuga
f098d8ea2e qcacld-3.0: Trim extn capability to max supported in change station
qcacld-2.0 to qcacld-3.0 Propagation.

extn capabilities can be controlled by user, which can
be sent greater than the max supported value. This results
in stack overflow in change station command.

Add check to validate extn capability param given by user
and if it exceeds max supported value, set it to max supported
value.

CRs-Fixed: 2076664
Change-Id: I531799dd06c41069e85ad969de6182363dbf9f05
2017-09-19 02:28:36 -07:00
SaidiReddy Yenuga
cc733aff70 qcacld-3.0: Add ini param to control the crash inject
qcacld-2.0 to qcacld-3.0 propagation

Currently the crash can be injected by iwpriv command and FW
gets crashed.
Changes are done to add the gEnableCrashInject ini parameter

1) This ini param is disabled by default.
2) If this param is disabled the crash inject is ignored.

Change-Id: I7e908be1e37090a9d343dc04411fe387f776a937
CRs-Fixed: 864932
2017-09-19 02:28:33 -07:00
Jeff Johnson
f1cd3c7d40 qcacld-3.0: Replace typedef ptSapContext
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The ptSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: Ia08bea35b7c0d3b3dfad4641c1c79a7c0990cd8d
CRs-Fixed: 2109993
2017-09-19 02:28:30 -07:00
Jeff Johnson
49c7a1465a qcacld-3.0: Remove wlansap_open() p_cds_gctx parameter
Currently wlansap_open() takes a p_cds_gctx parameter. At one time
this was needed, but that is no longer the case, so remove this unused
parameter.

Change-Id: Ie110b3cee9898233fb921aaab223caa4cf93de4e
CRs-Fixed: 2109961
2017-09-19 02:28:28 -07:00
Jeff Johnson
6816303da2 qcacld-3.0: Replace typedef tSapContext
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The tSapContext typedef does not
meet any of those criteria, so replace it.

Change-Id: If237edee7638c1c6b35413312cb3dd934554431a
CRs-Fixed: 2109960
2017-09-19 02:28:25 -07:00
Jeff Johnson
d0337e0f44 qcacld-3.0: Rename struct sSapContext
The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSapContext to align with the
Coding Style. The associated tSapContext and ptSapContext typedefs
will be cleaned up as a subquent effort.

Change-Id: I83962e1c574491039597559fb8b16f3339d41fbd
CRs-Fixed: 2109959
2017-09-19 02:28:22 -07:00
snandini
78c458ac7f Release 5.2.0.44B
Release 5.2.0.44B

Change-Id: I629406eefc4d5e317bf70660bc60aea8d15ac1fd
CRs-Fixed: 774533
2017-09-19 00:18:03 -07:00
Jeff Johnson
ef20675305 qcacld-3.0: Remove p_cds_gctx from struct sSapContext
The p_cds_gctx field in struct sSapContext is not used, so remove it.

Change-Id: I9eb6f651a359bf12f23ec094887ca308c834bae1
CRs-Fixed: 2109957
2017-09-19 00:18:03 -07:00
Jeff Johnson
3023b1e559 qcacld-3.0: Clean up csr_roam_stats_rsp_processor()
csr_roam_stats_rsp_processor() calls cds_get_global_context() but then
doesn't do anything with the result, so remove the unnecessary call.

Change-Id: Ic47dbf971d1eaea4c7c33ff62f9bfb848d9d654b
CRs-Fixed: 2109956
2017-09-19 00:18:00 -07:00
Jeff Johnson
c0db38437e qcacld-3.0: Remove unused CDS_GET_HAL_CB() parameter
Macro CDS_GET_HAL_CB() currently takes a ctx parameter. At one time
cds_get_context() needed a pointer to the global context, and hence
the reason for the parameter. But now that cds_get_context() no longer
needs the global context, remove the parameter from the macro. This is
a precursor to removing the p_cds_gctx from the SAP config.

Change-Id: Ic75bab55fd8b87710aee99b7e2d3783361dc3d87
CRs-Fixed: 2109955
2017-09-19 00:17:57 -07:00
Sandeep Puligilla
344d725f60 qcacld-3.0: Remove legacy scan for ssid logic
Remove legacy scan for ssid logic

Change-Id: I87b2b2a1b284d72e6d6c8d26303ce02b80c0b8b2
CRs-Fixed: 2101353
2017-09-19 00:17:55 -07:00
Sandeep Puligilla
d698bf5328 qcacld-3.0: Remove legacy scan event handling
Remove legacy scan event handling
in the WMA and LIM.

Change-Id: Ibeb6f99335b4e745335d5968791d9e9187df47f7
CRs-Fixed: 2101353
2017-09-19 00:17:52 -07:00
snandini
056b97bcb3 Release 5.2.0.44A
Release 5.2.0.44A

Change-Id: I6fc30a4e039a4001df1d70aca52da1edb6747c23
CRs-Fixed: 774533
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
5df6cc9977 qcacld-3.0: Address camel case coding style in hdd_mawc_cfg_log
Modify pHddCtx to hdd_ctx to avoid camel case coding style
as per the coding guidelines

Change-Id: I55767e0efdd803b3a8bf2bc7c52c96bbdc6d65bd
CRs-Fixed: 2111749
2017-09-18 20:27:55 -07:00
Varun Reddy Yeturu
faad37e33b qcacld-3.0: Introduce configuration parameters for bad RSSI roaming
Introduce the below WCNSS_qcom_cfg.ini items to configure
for bad RSSI roaming. These parameters would be used when
the device is connected to an AP with weak signal and has
to roam to a better AP if it is stationary but has found
some other better AP in the vicinity

roam_bg_scan_bad_rssi_thresh:
If the DUT is connected to an AP with weak signal, then the bad RSSI
threshold will be used as an opportunity to use the scan results
from other scan clients and try to roam if there is a better AP
available in the environment.

roam_bg_scan_client_bitmap:
This bitmap is used to define the client scans that need to be used
by the roaming module to perform a background roaming.

Change-Id: I3b9f737ea389d35f8be173ce83b2237c2375fb88
CRs-Fixed: 2082904
2017-09-18 20:27:52 -07:00
Naveen Rawat
08db88f684 qcacld-3.0: Cleanup get IE pointer from out, eid or ext_id APIs
Cleanup duplicate APIs for get ie pointer from EID or OUI or EXT_ID
and use wlan_utils exposed by qcacmn.

Change-Id: Iacbf041c9c49b2aedeffecba3427e9334cb70dcc
CRs-Fixed: 2105377
2017-09-18 20:27:49 -07:00
snandini
7623c082f6 Release 5.2.0.44
Release 5.2.0.44

Change-Id: Ib34f4a88d27f33d8f152767b338a0ebb16ef1a7c
CRs-Fixed: 774533
2017-09-18 19:38:34 -07:00
Dustin Brown
c81dd41399 qcacld-3.0: Fix net_device destructor for 4.12+ kernels
Linux kernel version 4.12 changes the way net_device destruction works.
Add conditional compilation to properly setup the net_device destruction
based on which version of the Linux kernel is being compiled against.

Change-Id: Idcc2186ff8593ed1467e7c0b08ece7c4dd70843a
CRs-Fixed: 2093367
2017-09-18 19:38:34 -07:00
Varun Reddy Yeturu
bba32e9055 qcacld-3.0: Introduce configuration parameters for NLO MAWC
Introduce the below WCNSS_qcom_cfg.ini configuration
parameters to MAWC based NLO.

mawc_nlo_enabled
mawc_nlo_exp_backoff_ratio
mawc_nlo_init_scan_interval
mawc_nlo_max_scan_interval

CRs-Fixed: 2081413
Change-Id: I7a9dbca080fb262750b420ca7265bc9583029271
2017-09-18 19:38:31 -07:00
snandini
ad619df7cb Release 5.2.0.43Z
Release 5.2.0.43Z

Change-Id: I6e38416cd0e7312db949ff78ff9f39559d0ed448
CRs-Fixed: 774533
2017-09-18 15:37:28 -07:00
Kiran Kumar Lokere
52f4a84b2a qcacld-3.0: Reduce the max join attempts for connection
Limit the max join attempts to half of the command timeout value

Change-Id: I0448011ed17c6e90f0ac39c9de57bb32a14ecc31
CRs-Fixed: 2105407
2017-09-18 15:37:27 -07:00
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