Commit Graph

9479 Commits

Author SHA1 Message Date
Dustin Brown
b2cd2e0ae0 qcacld-3.0: Rename PMO_ENTER and PMO_EXIT macros
In order to better align with the other PMO logging wrappers, and the
rest of the driver, rename the following macros:
 * PMO_ENTER -> pmo_enter
 * PMO_EXIT -> pmo_exit

Change-Id: I9186c1425f22c5a8d4fc98f048a9d487b6095797
CRs-Fixed: 2206650
2018-03-15 17:31:10 -07:00
nshrivas
8ab975d7b9 Release 5.2.0.69Z
Release 5.2.0.69Z

Change-Id: I78c6bf25ce8a0b3e35b25e813b98e4c9b8421fc4
CRs-Fixed: 774533
2018-03-15 15:12:17 -07:00
Hanumanth Reddy Pothula
560d5713d6 qcacld-3.0: Reset acs configuration after freeing acs channel list
Presently, on receiving DO_ACS vendor command driver resets
acs configuration to zero. This leads dynamically allocated
memory acs channel list address to be lost and thereby memory
leak is observed.

Reset acs configuration after freeing acs channel list, if its
already allocated.

Change-Id: Ice6854bfe8b12799200a5b18d96620f31548d776
CRs-Fixed: 2196377
2018-03-15 15:12:17 -07:00
Rajeev Kumar
fdb0189a4a qcacld-3.0: Add SSR protection wrapper for memdump read
Memdump read API is missing SSR protection wrapper which means
this ready operation can be issued durign driver unload which
can race against memdump deinit and lead to panic in kernel.
Hence add SSR protection wrapper to memdump read API such that
it does not race against driver unload/SSR/module stop.

Change-Id: I32d5ab715c9609abaf8eaaf3ed3db6f77aa8ddea
CRs-Fixed: 2205925
2018-03-15 15:12:12 -07:00
Dustin Brown
7678b6cb60 qcacld-3.0: cleanup wma_rx_service_ready_event
There are several redundant operations and unused variables in
wma_rx_service_ready_event. Remove these, and adjust some formatting and
incorrect types while we are at it.

Change-Id: Ia6376ef0e984103e36ab0395b54466acf0ad2d04
CRs-Fixed: 2201875
2018-03-15 15:12:07 -07:00
Dustin Brown
67d69ebbfd qcacld-3.0: Update firmware filter config (part 2)
In order to conserve firmware memory when various filtering features are
not in use, update the target configuration provided to firmware based
on the intersection of various filtering features and host
configuration.

Part 1
	num_wow_filters = ARP/NS offload enabled ? 2 : 5
	bpf_instruction_size - BPF enabled ? 0 (auto) : 0xffffffff

Part 2
	num_packet_filter = Packet Filter enabled ? 12 : 0xffffffff

Change-Id: Ie8cb4ae44c83b115b249e22ebd7146278ed70612
CRs-Fixed: 2199297
2018-03-15 15:11:59 -07:00
nshrivas
c2bc570e80 Release 5.2.0.69Y
Release 5.2.0.69Y

Change-Id: If0533d2478b4960b59b0955156a90c14b3883647
CRs-Fixed: 774533
2018-03-15 11:51:02 -07:00
Abhishek Singh
a6e5c3f0bf qcacld-3.0: Change default value of pcl_weightage to 10
Change default value of pcl_weightage to 10, so that PCL weightage
is used while connecting to a profile to select best BSS.

Change-Id: Ic074e01480d32510fb355846d92cb81d01e6e0d8
CRs-Fixed: 2206140
2018-03-15 11:51:02 -07:00
nshrivas
b6b0760f6f Release 5.2.0.69X
Release 5.2.0.69X

Change-Id: Ic0c289617ddcd50c7e7400432eaf2b99c98e8deb
CRs-Fixed: 774533
2018-03-15 09:32:42 -07:00
Yeshwanth Sriram Guntuka
a3f8d57005 qcacld-3.0: Update tx params if 2.4G APs min supported rate is 6Mbps
In STA mode, tx params for auth and assoc req frame
are not updated if minrate is 1 or 6Mbps as these
are the default rates for 2.4G and 5G respectively.
If 2.4G APs min supported rate is 6Mbps, the tx params
are not updated which results in auth and assoc req
frame transmitted at 1Mbps.

Fix is to update tx params if minrate is 6Mbps and
AP is operating in 2.4G.

Change-Id: Ia12c7b13cfb93e2d3b5a4ae124003248fa109e3f
CRs-Fixed: 2205282
2018-03-15 09:32:41 -07:00
Vignesh Viswanathan
45fc4b0a5e qcacld-3.0: Add makefile flag for ObjMgr Debug Enhancements
Add new CONFIG_WLAN_OBJMGR_DEBUG flag in qcacld Kbuild for ObjMgr
Debug enhancements and use the flag to enable the existing
WLAN_OBJMGR_DEBUG CFlag.

Change-Id: I295c9b6822ab0c1396368ecc719b2ba1c8c834dd
CRs-Fixed: 2184785
2018-03-15 09:32:38 -07:00
Tiger Yu
f3d5d7f5f1 qcacld-3.0: Do not enable the pktlog when interface is up
The pktlog will be enabled when interface is up. Which might affect
the performance heavily. So do not enable it at the initialization
to avoid this side effect.

Change-Id: Ie03a7e0a77bc5f525ad7ae74bb104a6d1bf21eb7
CRs-Fixed: 2206216
2018-03-15 09:32:35 -07:00
nshrivas
e78aede884 Release 5.2.0.69W
Release 5.2.0.69W

Change-Id: I2a32a8c846bfce192dc209ac5106280bf981b65c
CRs-Fixed: 774533
2018-03-15 08:04:58 -07:00
Dustin Brown
e74003faac qcacld-3.0: Rename ENTER/EXIT macros (part 3)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 3, migrate usages of EXIT

Change-Id: I0868800b694c92d2ad157394d619c05f89dd222d
CRs-Fixed: 2205840
2018-03-15 08:04:58 -07:00
Zhu Jianmin
6a7b702184 qcacld-3.0: Fix ifconfig wlan0 up failed on Rome
Fix 2 sub issues:
1. wlan_hdd_update_dbs_scan_and_fw_mode_config and
sme_soc_set_dual_mac_config is called in
hdd_wlan_start_modules->hdd_configure_cds->hdd_features_init,
before hdd_start_adapter,  so vdev isn't created yet,
csr_queue_sme_command returned failed

Fixed by moving wlan_hdd_update_dbs_scan_and_fw_mode_config to
end of hdd_start_adapter

2. Rome doesn't support DBS, doesn't support cmd and wmi service
WMI_PDEV_SET_MAC_CONFIG_CMDID. so no response event for the cmd,
the cmd can't be removed from active list. so next cmd:
WMA_ADD_STA_SELF_REQ can't be executed at all, no complete event
for sme_open_session, hdd_init_station_mode failed

Fixed by checking whether support HW DBS before
sme_soc_set_dual_mac_config

Change-Id: Iec2ef7e77e91f332028904c319d24e1ed134306d
CRs-Fixed: 2202262
2018-03-15 08:04:55 -07:00
Rajeev Kumar
f5a17acdc7 qcacld-3.0: Remove redundant extern keyword from wext public APIs
Some of wext public APIs are declared using extern storage
class specifier which is not needed hence clean up extern
keyword from wext public API declarations from wlan_hdd_wext.h

Change-Id: Ib1fe79a94b62bc457784340a7e930489fffe98f9
CRs-Fixed: 2202699
2018-03-15 08:04:52 -07:00
Dustin Brown
5e89ef8673 qcacld-3.0: Remove hdd_notice
hdd_notice() is a redundant re-definition of hdd_info(), so remove it.
Replace existing usages with hdd_info() or hdd_debug() as appropriate.

Change-Id: Ie8ce7530c0118eff740975dcce396b68c2115429
CRs-Fixed: 2205815
2018-03-15 08:04:50 -07:00
Himanshu Agarwal
813b2bf082 qcacld-3.0: Handle concurrency for green AP component
Invoke green AP start/stop based on the current concurrency
and present state of green AP state machine.

Change-Id: I5648d236e6492f326c7ba9951da550e229352412
CRs-Fixed: 2173952
2018-03-15 08:04:47 -07:00
Rachit Kankane
0baf6e723f qcacld-3.0: Compile out MTRACE feature
Fix to disabled MTRACE feature

Change-Id: I400933feecc54b46bd9aebdbc2cb5440c882112b
CRs-Fixed: 2189869
2018-03-15 08:04:44 -07:00
Dustin Brown
92def29b24 qcacld-3.0: Enable level-specific logging wrappers
Change Ie062ada403f8a31aebcde691396987ad9e5352b5 introduced level-
specific logging wrappers to support compiling out entire levels of
logging messages. Enable these logging wrappers in the build config.

Change-Id: Ia866d28d1581f2baa69967a9c342da5a5432ef62
CRs-Fixed: 2205917
2018-03-15 08:04:42 -07:00
nshrivas
26da5bba98 Release 5.2.0.69V
Release 5.2.0.69V

Change-Id: I081c54eaf7b87d367ec010020f7783a8bdd1339f
CRs-Fixed: 774533
2018-03-15 06:08:38 -07:00
Dustin Brown
bacc48f334 qcacld-3.0: Remove redundant FL in HDD
The hdd_* logging wrappers already inject the calling function and line
number information, but several consumers are wrapping the format string
in a call to FL, which does the same thing. Remove redundant calls to FL
in HDD.

Change-Id: Ieb3e54f707579296fbfdbce74496800cf14ecd0a
CRs-Fixed: 2205912
2018-03-15 06:08:38 -07:00
Dustin Brown
fdf17c1e26 qcacld-3.0: Rename ENTER/EXIT macros (part 4)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 4, migrate usages of ENTER_DEV

Change-Id: I53628486c9acf5c444c2a97c40ab02324e9a00d7
CRs-Fixed: 2205843
2018-03-15 06:08:35 -07:00
bings
3fe5bc31bf qcacld-3.0: Configure phyerr filter offload before sap starts
Do not send phyerr filter offload to FW when dfs module is doing
initialization, because in target_if_dfs_set_phyerr_filter_offload
routine GET_WMI_HDL_FROM_PDEV returns NULL at this time.

Configure phyerr filter offload before sap starts.

Change-Id: I60436fc1e142937383a3714c727166bc5fa8d0db
CRs-Fixed: 2205229
2018-03-15 06:08:32 -07:00
nshrivas
e2b1cb8076 Release 5.2.0.69U
Release 5.2.0.69U

Change-Id: I59c3142dc72e7901a9997346185eb5e3d8e76403
CRs-Fixed: 774533
2018-03-15 04:25:59 -07:00
Surabhi Vishnoi
75b1a81aea qcacld-3.0: Modify the arguments of wmi_unified_attach
The params are passed individually as argument in wmi_unified_attach.
Instead of individual params, use a struct for wmi attach params.
Also pass max commands as param in wmi attach.

CRs-Fixed: 2192801
Change-Id: I28d5985655b436da048d72d33fe0fb4f57e85a50
2018-03-15 04:25:59 -07:00
nshrivas
0d396a2711 Release 5.2.0.69T
Release 5.2.0.69T

Change-Id: I3d0812020675809fd7c8dcf75e0ecb8b5e67bbbf
CRs-Fixed: 774533
2018-03-14 22:34:04 -07:00
Sravan Kumar Kairam
b9484f304d qcacld-3.0: Add IPA QDF abstraction file to Kbuild
For IPA enum QDF abstraction add qdf ipa file to Kbuild.

Change-Id: Ib8c46badff3667ed1755eadd1cd13a3e8b78890c
CRs-Fixed: 2201474
2018-03-14 22:34:03 -07:00
nshrivas
8ebf09757a Release 5.2.0.69S
Release 5.2.0.69S

Change-Id: Ia5fa1c45d7ea9aec0c263f28abdd12b6bcd784dc
CRs-Fixed: 774533
2018-03-14 17:58:35 -07:00
Dustin Brown
32a6118d85 qcacld-3.0: Rename ENTER/EXIT macros (part 1)
In order to better align with the rest of the driver, rename the
following macros:
 * ENTER -> hdd_enter
 * ENTER_DEV -> hdd_enter_dev
 * EXIT -> hdd_exit

For part 1, introduce the new macros

Change-Id: I82fed51ed676041352acfeff20923c58ade4a826
CRs-Fixed: 2205830
2018-03-14 17:58:34 -07:00
nshrivas
d9d256c172 Release 5.2.0.69R
Release 5.2.0.69R

Change-Id: I7027842ea5c6c5d7bb88ed91febf84440eee34c6
CRs-Fixed: 774533
2018-03-14 15:53:08 -07:00
Rajeev Kumar
3f5c593023 qcacld-3.0: Ignore qdf debug fs create failure during init
Debug fs create failure should not fail wifi turn on. Add logic
to allow wifi turn on even if kernel debug fs create API returns
failure.

Change-Id: I02ce1ae4022f6590b29b8666bbe39c7387e8d0dd
CRs-Fixed: 2203329
2018-03-14 15:53:08 -07:00
Manikandan Mohan
04459b9cf8 qcacld-3.0: Fix errors of multi driver compilation
Qcacld supports multiple driver modules instance generation with
different file names and Kbuild options. Fix driver load time and
compilation errors on this feature.

Change-Id: Ib405e6c475bace31933a28dc64082f2b6c046da9
CRs-fixed: 2197749
2018-03-14 15:53:05 -07:00
Rajeev Kumar
807c5f5193 qcacld-3.0: Register fw down callback with QDF
Register fw down callback with QDF such that new UMAC
components can check if FW is down or not.

Change-Id: I394860324368d7671f83536791b021109ddb39aa
CRs-Fixed: 2202602
2018-03-14 15:53:01 -07:00
Rajeev Kumar
c9518ef38c qcacld-3.0: Clean up obsolete INI item gEnableFwSelfRecovery
Config ini item gEnableFwSelfRecovery is obsolete and no longer used
hence remove it.

Change-Id: I3b7f8662cb42f74d217dbdf3b2c3512176e2833e
CRs-Fixed: 2202033
2018-03-14 15:52:58 -07:00
nshrivas
7168432dc4 Release 5.2.0.69Q
Release 5.2.0.69Q

Change-Id: Id60d3d863a2fc1f35d118eaa02ac5b50ec8ab67a
CRs-Fixed: 774533
2018-03-14 09:57:04 -07:00
Himanshu Agarwal
29a9a3e912 qcacld-3.0: Downgrade bandwidth to 40Mhz in 2.4Ghz case
When the channel list contains only 2.4Ghz channels and
bandwidth is coming as 80Mhz in __wlan_hdd_cfg80211_do_acs(),
max weight gets assigned to all the channels irrespective of
scan results and channel 1 gets selected in the end.

Downgrade bandwidth to 40Mhz if channel list contains only 2.4Ghz
channels and bandwidth is coming as 80Mhz.

Change-Id: I0e54b5db0020768c219acc0d864e72813c9185e9
CRs-Fixed: 2193438
2018-03-14 09:57:03 -07:00
nshrivas
9e0ee7c006 Release 5.2.0.69P
Release 5.2.0.69P

Change-Id: Ib56c8ef8591795a2a474e27970083f44fac6a5aa
CRs-Fixed: 774533
2018-03-14 07:04:59 -07:00
Sourav Mohapatra
92ea8d67eb qcacld-3.0: Add support for recovery in FTM mode
While the driver is in FTM state, if a PDR is encountered
the driver is not allowed to recover.

Allow the recovery of the driver after PDR in FTM mode.

Change-Id: Ib4ee3970067a9fde5ba12d4dd954774a16ef0255
CRs-Fixed: 2181509
2018-03-14 07:04:59 -07:00
nshrivas
b9b6d6422d Release 5.2.0.69O
Release 5.2.0.69O

Change-Id: I6272f3312ee925f2990e922e73a0b78f4c18231f
CRs-Fixed: 774533
2018-03-14 01:48:54 -07:00
jitiphil
5256306ace qcacld-3.0: Fix access to ol_rx_thread after thread shutdown
Currenty we are trying to access the ol_rx_thread in
ds_cpu_hotplug_notify function after we shut the thread
down in cds_sched_close function

To address the issue keep a NULL check for the ol_rx_thread

Change-Id: Icddd3ace52bbe773790546d1ace1fd463bc1a7e7
CRs-Fixed: 2200501
2018-03-14 01:48:54 -07:00
nshrivas
2cf46f639a Release 5.2.0.69N
Release 5.2.0.69N

Change-Id: I55bd4ccac20c3855be927151cf88989c93625bcf
CRs-Fixed: 774533
2018-03-13 23:18:04 -07:00
Zhang Qian
2ad31da36d qcacld-3.0: Fix the dsrc_config fail issue
qcacld-2.0 to qcacld-3.0 Propagation.

Revert the changes of Validating NLA attr in
wlan_hdd_cfg80211_ocb_set_config API to fix the
dsrc_config fail issue.

CRs-Fixed: 2109727
Change-Id: I5037498a510820a86cba9e61149640a957b46086
2018-03-13 23:18:03 -07:00
Pragaspathi Thilagaraj
fda1af6bef qcacld-3.0: Fix OOB write in wma_passpoint_match_event_handler
In the function wma_passpoint_match_event_handler, fixed param event data
from firmware is filled in the destination buffer and indication is sent
to upper layers. The buffer allocation is done for the size
(wmi_passpoint_event_hdr*) + event->ie_length + event->anqp_length. The
maximum firmware event message size is WMI_SVC_MSG_MAX_SIZE. If either,
ie_length and anqp_length combined is greater than WMI_SVC_MSG_MAX_SIZE or
either of the two exceeds WMI_SVC_MSG_MAC_SIZE, an OOB write will occur in
wma_passpoint_match_event_handler.

Add check to ensure either of the values ie_length or anqp_lenth or
(ie_length + anqp_length) doesnt exceed the WMI_SVC_MAX_SIZE. Return
failure if it exceeds.

Change-Id: I21f473ca0b99ebb8488f2cca3c0774817ea97c3a
CRs-Fixed: 2201190
2018-03-13 23:18:00 -07:00
nshrivas
436e8df2c7 Release 5.2.0.69M
Release 5.2.0.69M

Change-Id: Ied3870a88e34f86943936192c248f6200e7027a4
CRs-Fixed: 774533
2018-03-13 21:01:09 -07:00
Arif Hussain
d54b62c7ca qcacld-3.0: Add dfs phyerr processing
Add dfs phy error processing code.

Change-Id: I756df1052bc563d312112a7c2250f2b34224eae9
CRs-Fixed: 2203434
2018-03-13 21:01:08 -07:00
nshrivas
dad69e35d6 Release 5.2.0.69L
Release 5.2.0.69L

Change-Id: I8e0234af299feec685cf49fbc627f1247847915b
CRs-Fixed: 774533
2018-03-13 18:41:49 -07:00
Naveen Rawat
56d5e0b7e0 qcacld-3.0: Allow tx/rx chainmask value to be 3
Allow tx/rx chainmask value to be 3, which indicates use both chains.

Change-Id: I95779ff97dca6538312177443163dc7276985fb9
CRs-Fixed: 2183831
2018-03-13 18:41:48 -07:00
Naveen Rawat
807b6d07ac qcacld-3.0: Ensure BSS color is within 1-63 when not specified
Randomize bss color within 1 to 63 When hostapd.conf does not specifies
bss color parameter.

Change-Id: I5650d15836e19bd0efc226f86b22a8697e45c59e
CRs-Fixed: 2200411
2018-03-13 18:41:45 -07:00
Kiran Kumar Lokere
96180e1324 qcacld-3.0: Set addba response buffer size to default value
Set the default addba buffer size to 64 and advertise the default
value in addba response frame.

Change-Id: I8eec73c0907b42414bc742ae01b921b9e4e5b6d5
CRs-Fixed: 2204110
2018-03-13 18:41:42 -07:00