Commit Graph

10405 Commits

Author SHA1 Message Date
Wen Gong
9976890a5d qcacld-3.0: Featurize dbglog_host
Featurize parsing support for WLAN firmware logs in WLAN host driver

Change-Id: Ib4f04bd23698e981bc4ab1f8e0d880798d521020
CRs-Fixed: 2228367
2018-05-17 14:26:19 -07:00
Sravan Kumar Kairam
cc1abc88f9 qcacld-3.0: Fix information leak in IPA res info and stats
Currently in functions to show IPA resource info and IPA stats
there are information related to IPA resources memory address.
This may be lead to potential information leak to the location
of IPA resources. Remove the addresses information from the
logs in res info and stats function.

Change-Id: I75d756211c8aaaea300fb207e40a08f5b1ca81e3
CRs-Fixed: 2225361
2018-05-17 14:26:15 -07:00
nshrivas
18d3d88810 Release 5.2.0.78T
Release 5.2.0.78T

Change-Id: Ia89eb58c8d2325e34818666cb1949d055fa18614
CRs-Fixed: 774533
2018-05-17 11:35:13 -07:00
Rajeev Kumar
4992b686c2 qcacld-3.0: Reject DISA test vendor command if power save is enabled
DISA encrypt/decrypt test is not supported by FW when power save is
enabled. Add check to reject DISA encrypt/decrypt vendor test command
if power save is enabled.

Change-Id: Ia83036f957a3298288d312f836d40284344ce8e8
CRs-Fixed: 2240880
2018-05-17 11:35:10 -07:00
bings
071a4c6d71 qcacld-3.0: Do not call dfs_get_radars if concurrent sap exists
If concurrent sap exists, which means dfs_init_radar_filters has
been called before, there is no need to call it again.

Change-Id: Ibf1805b0dbd27fbdf36c37450bdb95626195fb81
CRs-Fixed: 2241282
2018-05-17 11:35:01 -07:00
Will Huang
1655c228cb qcacld-3.0: Fix assigning wrong obss active/passive dwell time value
The obss active dwell time does not match with OBSS IE in association
response, it is a mistake to assign passive dwell time of OBSS IE to
active dwell time, and the passive dwell time value is from ini, not
updated to OBSS IE value.

Assign OBSS IE passive dwell time to passive dwell time parameter.

Change-Id: I5e7945353d00f0411ef3d92534c3f170dec440a5
CRs-Fixed: 2239670
2018-05-17 11:34:51 -07:00
Kiran Kumar Lokere
e43a458fdc qcacld-3.0: Fix the issue with LDPC disable
LDPC dynamic configuration setting is not updated into session
configuration hence LDPC disable do not happen when user disable
it. Update the session configuration parameters for LDPC with
user settings.

Change-Id: Ic0b5f2b17cde5746054f90d78d6c99624444d086
CRs-Fixed: 2235936
2018-05-17 11:34:42 -07:00
nshrivas
2a97b23a83 Release 5.2.0.78S
Release 5.2.0.78S

Change-Id: Id5514ee7a911e596644b96a2e6bfc7b62f8388ee
CRs-Fixed: 774533
2018-05-17 07:59:23 -07:00
jitiphil
46e0a1354b qcacld-3.0: Possible Out Of Bound reads in htt_t2h_tx_ppdu_log_print()
mpdu_bytes_array_len, mpdu_msdus_array_len, and msdu_bytes_array_len
are used to calculate the record size, as well as used as
buffer offset, without any verification. This can cause to multiple
overflows and underflow leading to OOB reads.

Add checks for each arithmetic operation with these variables.

Change-Id: Ib6ec6ac6932eb8c541bc2357d45d3feaf39fdb7d
CRs-Fixed: 2226125
2018-05-17 07:59:21 -07:00
nshrivas
14c64fc404 Release 5.2.0.78R
Release 5.2.0.78R

Change-Id: I5b358b8b5b851ba5949c2b058be76fabda1ccf77
CRs-Fixed: 774533
2018-05-17 06:03:36 -07:00
gaurank kathpalia
a4a012ca2e qcacld-3.0: Add length check in wma_process_rmf_frame
The driver verifies the replay_attack in protected
management frames in the API wma_is_ccmp_pn_replay_attack
The API expects a CCMP header pointer, but it may happen that
the size of the total frame is less than the size of ieee frame
+ the CCMP header length. In that case the CCMP pointer will
point to some memory location  not allocated to the frame, which
will result to out of bound access.

Fix is to add a length check to memory allocated to wbuf in
wma_process_rmf_frame

Change-Id: I351fa671cb8728843c8843c27dd91bcb201abb42
CRs-Fixed: 2230976
2018-05-17 06:03:33 -07:00
nshrivas
9ccc1db17f Release 5.2.0.78Q
Release 5.2.0.78Q

Change-Id: I2e40d207344f46323b04d88f022e69678c7f1d8a
CRs-Fixed: 774533
2018-05-16 23:19:46 -07:00
Srinivas Girigowda
836475eb0c qcacld-3.0: Add dummy function for supplicant deprecated commands
This commit fix the VTS test failures when running the following
deprecated commands in SupplicantStaIfaceHidlTest
  RXFILTER-START
  RXFILTER-STOP
  BTCOEXSCAN-START
  BTCOEXSCAN-STOP

Change-Id: I45fa09c24700e6872de7709c6875dbdbd8aa10cc
CRs-Fixed: 2226343
2018-05-16 23:19:45 -07:00
Srinivas Girigowda
e1be8779ca qcacld-3.0: Revive the WoW wakeup logs to appear in kmsg
In the earlier generation of product or qcacld-3.0 code,
the wow related logs which helps debug which is the packet
waking up the APPS used to appear in kmsg and hence part of
the bugreport.

Now in the recent code base, this log is moved to LOGD
which appears in cnss_diag, with this change the ask is
to revive the same logs to appear in kmsg instead of
cnss_diag logs.

Hence move these from Debug to Info. INFO logs appear in kmsg.

Change-Id: Iefcd362209f3f2276d0c2ac53359e0f325122f95
CRs-Fixed: 2225547
2018-05-16 23:19:39 -07:00
Srinivas Girigowda
44cff5c444 qcacld-3.0: Log netdev tx queue state at user triggered disconnect
Framework shall trigger disconnect for many reasons,
one of them is NUD failure. The motive to print tx queue
state whenever disconnect is triggered from the userspace
is to see the state of the tx queue at the time of disconnect.

Change-Id: I73f6359f6823de4781ed94b1d4f19c4a0a198879
CRs-Fixed: 2225547
2018-05-16 23:19:32 -07:00
nshrivas
b59f9ed952 Release 5.2.0.78P
Release 5.2.0.78P

Change-Id: I31e07091730bc49562a7f49e38695a7cb2984427
CRs-Fixed: 774533
2018-05-16 18:01:50 -07:00
Jeff Johnson
5e58340074 qcacld-3.0: pld: Fix misspelling of 'bandwidth'
Address the following issue in the core/pld folder:
CHECK: 'bandwith' may be misspelled - perhaps 'bandwidth'?

Change-Id: Ic397c156ff7ba32cec590083098474af16569ea7
CRs-Fixed: 2241943
2018-05-16 18:01:49 -07:00
Jeff Johnson
47d7524e3e qcacld-3.0: mac: Fix misspellings
Address the following issues in the core/mac folder:
CHECK: 'absense' may be misspelled - perhaps 'absence'?
CHECK: 'accquired' may be misspelled - perhaps 'acquired'?
CHECK: 'acknowledgement' may be misspelled - perhaps 'acknowledgment'?
CHECK: 'arbitary' may be misspelled - perhaps 'arbitrary'?
CHECK: 'automaticly' may be misspelled - perhaps 'automatically'?
CHECK: 'calulate' may be misspelled - perhaps 'calculate'?
CHECK: 'couter' may be misspelled - perhaps 'counter'?
CHECK: 'defferred' may be misspelled - perhaps 'deferred'?
CHECK: 'Defintions' may be misspelled - perhaps 'Definitions'?
CHECK: 'dependant' may be misspelled - perhaps 'dependent'?
CHECK: 'dosen' may be misspelled - perhaps 'doesn'?
CHECK: 'endianess' may be misspelled - perhaps 'endianness'?
CHECK: 'explicitely' may be misspelled - perhaps 'explicitly'?
CHECK: 'fimware' may be misspelled - perhaps 'firmware'?
CHECK: 'fucntion' may be misspelled - perhaps 'function'?
CHECK: 'Funtion' may be misspelled - perhaps 'Function'?
CHECK: 'immediatly' may be misspelled - perhaps 'immediately'?
CHECK: 'implemetation' may be misspelled - perhaps 'implementation'?
CHECK: 'Intialize' may be misspelled - perhaps 'Initialize'?
CHECK: 'lengh' may be misspelled - perhaps 'length'?
CHECK: 'managment' may be misspelled - perhaps 'management'?
CHECK: 'Managment' may be misspelled - perhaps 'Management'?
CHECK: 'messsages' may be misspelled - perhaps 'messages'?
CHECK: 'Notifed' may be misspelled - perhaps 'Notified'?
CHECK: 'parametes' may be misspelled - perhaps 'parameters'?
CHECK: 'Paramters' may be misspelled - perhaps 'Parameters'?
CHECK: 'processsing' may be misspelled - perhaps 'processing'?
CHECK: 'receving' may be misspelled - perhaps 'receiving'?
CHECK: 'Recieved' may be misspelled - perhaps 'Received'?
CHECK: 'reponse' may be misspelled - perhaps 'response'?
CHECK: 'reseting' may be misspelled - perhaps 'resetting'?

Change-Id: Id58b5bf38fe88007c88cbda62a1fc43c0f1b3a37
CRs-Fixed: 2241942
2018-05-16 18:01:44 -07:00
Jeff Johnson
3dca222e0b qcacld-3.0: dp: Fix misspellings
Address the following issues in the core/dp folder:
CHECK: 'accomodate' may be misspelled - perhaps 'accommodate'?
CHECK: 'acess' may be misspelled - perhaps 'access'?
CHECK: 'bahavior' may be misspelled - perhaps 'behavior'?
CHECK: 'catagory' may be misspelled - perhaps 'category'?
CHECK: 'continous' may be misspelled - perhaps 'continuous'?
CHECK: 'controler' may be misspelled - perhaps 'controller'?
CHECK: 'curently' may be misspelled - perhaps 'currently'?
CHECK: 'defintion' may be misspelled - perhaps 'definition'?
CHECK: 'Defintions' may be misspelled - perhaps 'Definitions'?
CHECK: 'desriptor' may be misspelled - perhaps 'descriptor'?
CHECK: 'extention' may be misspelled - perhaps 'extension'?
CHECK: 'informations' may be misspelled - perhaps 'information'?
CHECK: 'lenght' may be misspelled - perhaps 'length'?
CHECK: 'managment' may be misspelled - perhaps 'management'?
CHECK: 'messsage' may be misspelled - perhaps 'message'?
CHECK: 'neccessary' may be misspelled - perhaps 'necessary'?
CHECK: 'recieved' may be misspelled - perhaps 'received'?
CHECK: 'Recieve' may be misspelled - perhaps 'Receive'?

Change-Id: Ib8c1b94b5bb3bb5798e41dbb4c1461be80fd1398
CRs-Fixed: 2241941
2018-05-16 18:01:38 -07:00
Jeff Johnson
47486e2f87 qcacld-3.0: cds: Fix misspellings
Address the following issue in the core/cds folder:
CHECK: 'couter' may be misspelled - perhaps 'counter'?
CHECK: 'defintions' may be misspelled - perhaps 'definitions'?
CHECK: 'endianess' may be misspelled - perhaps 'endianness'?
CHECK: 'extention' may be misspelled - perhaps 'extension'?
CHECK: 'independant' may be misspelled - perhaps 'independent'?
CHECK: 'initilize' may be misspelled - perhaps 'initialize'?
CHECK: 'minumum' may be misspelled - perhaps 'minimum'?
CHECK: 'recieve' may be misspelled - perhaps 'receive'?

Change-Id: I8586ee1aa0a2ab59faa064ff534148511e662615
CRs-Fixed: 2241940
2018-05-16 18:01:33 -07:00
Jeff Johnson
9e80bab8d0 qcacld-3.0: bmi: Fix misspellings
Address the following issues in the core/bmi folder:
CHECK: 'Defintions' may be misspelled - perhaps 'Definitions'?
CHECK: 'initilization' may be misspelled - perhaps 'initialization'?

Change-Id: I649b42e30e10e51c2c734d909a8c9ab2811b9421
CRs-Fixed: 2241939
2018-05-16 18:01:27 -07:00
Jeff Johnson
265d6a7f23 qcacld-3.0: Fix misspelling of 'required'
Fix misspelling 'requried' => 'required'.

Change-Id: I97f4a5c5ed65b8652b9ae5c58683b6240299f58a
CRs-Fixed: 2241938
2018-05-16 18:01:22 -07:00
Jeff Johnson
06aebd7e54 qcacld-3.0: Fix misspelling of 'Suported'
Fix misspelling 'Suported' => 'Supported'.

Change-Id: I13a56ebd9cab0d79973996e746b923f525dc2594
CRs-Fixed: 2241937
2018-05-16 18:01:17 -07:00
Jeff Johnson
3370f3a742 qcacld-3.0: Fix misspellings of 'success'
Fix misspellings
- success => success
- succesful => successful
- succesfull => successful
- succesfully => successfully

Change-Id: Ie74c59650c4784ac6df4599f38487eee90489b23
CRs-Fixed: 2241936
2018-05-16 18:01:12 -07:00
Jeff Johnson
6bb5d7852a qcacld-3.0: Fix misspelling of 'retrieve'
Fix misspelling 'retreive' => 'retrieve'

Change-Id: I7fd51f73a911e528e2e17088f7a099056478efc8
CRs-Fixed: 2241935
2018-05-16 18:01:07 -07:00
Jeff Johnson
bd16f9df6b qcacld-3.0: Fix misspelling of 'request'
Fix misspelling 'reuqest' => 'request'

Change-Id: I6ad1d3d45922bba6362304bd28bb1239eeb0c5e1
CRs-Fixed: 2241934
2018-05-16 18:01:03 -07:00
Jeff Johnson
179fd8ae0e qcacld-3.0: Fix misspelling of 'specific'
Fix misspelling 'specfic' => 'specific'

Change-Id: Idc4f5ec0d23a36ab98cfea84647bd38f4eace3a8
CRs-Fixed: 2241933
2018-05-16 18:00:54 -07:00
Jeff Johnson
d460e84274 qcacld-3.0: Fix misspelling of 'stopped'
Fix misspelling stoped => stopped

Change-Id: I272a0c3ad5ab262570ec9de0e72e5438fa67767a
CRs-Fixed: 2241932
2018-05-16 18:00:43 -07:00
Jeff Johnson
a642eadfd2 qcacld-3.0: Fix misspellings of 'support'
Fix misspellings 'suport' => 'support'

Change-Id: Iba5b4046ffa99db7cbc7b9f4e92e0bc680cd817f
CRs-Fixed: 2241931
2018-05-16 18:00:39 -07:00
Jeff Johnson
329bb2a1d3 qcacld-3.0: Fix misspelling of 'the'
Fix misspelling 'teh' => 'the'

Change-Id: I3d8f6068f8abbaf07962e244f076a5ef68a23662
CRs-Fixed: 2241930
2018-05-16 18:00:34 -07:00
Jeff Johnson
c5927def57 qcacld-3.0: Fix misspellings of 'update'
Fix misspellings:
- udpated => updated
- udpate_type => update_type

Change-Id: I0481278e76a6482d0974d1730398cbcf633f4b08
CRs-Fixed: 2241929
2018-05-16 18:00:30 -07:00
Jeff Johnson
2a2fa1f17f qcacld-3.0: Fix misspellings of 'Utility'
Fix misspellings 'Utiltity' => 'Utility'.

Change-Id: Ib4a5a9e25b6a6316f52ea2b6f869fc976465fb68
CRs-Fixed: 2240060
2018-05-16 18:00:25 -07:00
Jeff Johnson
bbca3d503c qcacld-3.0: Fix misspellings of 'unknown'
Fix misspellings 'unknow' => 'unknown'

Change-Id: I7593ddf74df9c7917bd94819953ef0603c15a933
CRs-Fixed: 2240061
2018-05-16 18:00:20 -07:00
Jeff Johnson
7fa88f7970 qcacld-3.0: Fix misspelling of 'until'
Fix misspelling 'untill' => 'until'.

Change-Id: Ie5b8f8ffb1bbbea634978c4863b0dccf589cb37d
CRs-Fixed: 2240062
2018-05-16 18:00:16 -07:00
Jeff Johnson
00634ab05b qcacld-3.0: Fix misspelling of 'valid'
Fix misspelling 'vaild' => 'valid'

Change-Id: I48db34267b23ea06206a44f523bb9087fd997a10
CRs-Fixed: 2240063
2018-05-16 18:00:12 -07:00
Jeff Johnson
6548503053 qcacld-3.0: Fix misspelling of 'virtual'
Fix misspelling 'virtaul' => 'virtual'

Change-Id: I51517b1a879bae1adcbe90a75043198d9352c27b
CRs-Fixed: 2240064
2018-05-16 18:00:08 -07:00
Jeff Johnson
e8474a0059 qcacld-3.0: Fix misspelling of 'weird'
Fix misspelling 'wierd' => 'weird'.

Change-Id: Id054d9f273e1fe5771e1bd20b897dd610831266c
CRs-Fixed: 2240066
2018-05-16 18:00:04 -07:00
Jeff Johnson
37df7c3d8f qcacld-3.0: Fix misspelling of 'want'
Fix misspelling 'wnat' => 'want'

Change-Id: I05468a6203c482b71ab0dba3e6d4177ddf66686d
CRs-Fixed: 2240067
2018-05-16 18:00:00 -07:00
Jeff Johnson
be7f4fd08f qcacld-3.0: Fix misspellings of 'address'
Fix misspellings:
'addres' => 'address'
'addresss' => 'address'
'addreses' => 'addresses'

Change-Id: Ife5dc638af74ce55dde4402746112d8d8ef13711
CRs-Fixed: 2241928
2018-05-16 17:59:57 -07:00
nshrivas
412c6b2eff Release 5.2.0.78O
Release 5.2.0.78O

Change-Id: Iae06030f2c6ba770efcefe12c1f15d2d89b6cc00
CRs-Fixed: 774533
2018-05-16 15:14:04 -07:00
Vignesh Viswanathan
5b909f56aa qcacld-3.0: Fix freeing of SAP PE session lim_send_sme_disassoc_ntf
When a peer connected to a SAP session triggers disconnect,
lim_send_sme_disassoc_ntf is called with the reason
eLIM_PEER_ENTITY_DISASSOC. This leads to the PE sesssion for the SAP
being freed as part of the lim_send_disconnect_done_ind added in the
change Iec0176fecf218e07f31b258c0dc52aefb480defe.

Modify the lim_send_disconnect_done_ind API to just prepare the
disconnect done indication message and the calling function
lim_send_sme_disassoc_ntf would send the notification to SME and
free the PE session only if the current session is a STA.

Change-Id: I377f86f10becd467417d4c6409d167020e26fe87
CRs-Fixed: 2241899
2018-05-16 15:14:02 -07:00
Himanshu Agarwal
d519b4ab08 qcacld-3.0: Release WM status change cmd after eWNI_SME_DISCONNECT_DONE_IND
When deauth is received from AP, while processing of deauth frame,
WM status change command is queued in SME command pending list with
priority set as true in which DEL_BSS and DEL_STA happens leading to
VDEV_STOP AND VDEV_DOWN correspondingly.

When disconnect is issued from upper layer, ROAM command with reason
eCsrForcedDisassoc gets queued in SME command pending list with priority
set as true which performs DEL_BSS nad DEL_STA and then
eSmeCommandDelStaSession SME command is queued with priority set as false
which performs DEL_SELF_STA.

If disconnect is issued from upper layer and deauth is received from AP at
the same time, it might happen that ROAM SME command and
eSmeCommandDelStaSession SME command gets queued in SME command pending
list but WM status change command gets queued on top of these as priority
is set to true before the former commands can be processed. While
processiing of WM status change command, eWNI_SME_DEAUTH_CNF msg gets
queued in SME message queue which queues WMA_DELETE_BSS_REQ in WMA msg
queue. If WM staus change command is released just after
eWNI_SME_DEAUTH_CNF is posted, it might happen that Roam and
eSmeCommandDelStaSession SME commands from SME command pending list gets
processed first which will queue WMA_DEL_STA_SELF_REQ in WMA msg queue
before eWNI_SME_DEAUTH_CNF gets processed and queue WMA_DELETE_BSS_REQ
in WMA msg queue. This leads to processing of WMA_DEL_STA_SELF_REQ before
WMA_DELETE_BSS_REQ causing assert as this is unexpected behaviour.

Release WM status change command only after eWNI_SME_DISCONNECT_DONE_IND
which happens after WMA_DELETE_BSS_REQ and WMA_DELETE_STA_REQ gets
processed so that ROAM and eSmeCommandDelStaSession SME commands gets to
process only after processing of DEL_BSS and DEL_STA and so
WMA_DEL_STA_SELF_REQ will always be processed after WMA_DELETE_BSS_REQ
avoidong system assert.

Change-Id: Iec0176fecf218e07f31b258c0dc52aefb480defe
CRs-Fixed: 2211622
2018-05-16 15:13:55 -07:00
nshrivas
4d3453a34b Release 5.2.0.78N
Release 5.2.0.78N

Change-Id: I9b1e3c4a75e8112b0bb7f64e15c4ec81b10c74eb
CRs-Fixed: 774533
2018-05-16 13:44:47 -07:00
Abhishek Singh
1571ca7cc0 qcacld-3.0: Add support to set antenna mode for SAP
Add support to set antenna mode for SAP using iwpriv commands
set_txchainmask and set_txchainmask.

Change-Id: Id74d8caf6b2d48b0afbcc3791bd347d6addd2e7d
CRs-Fixed: 2239648
2018-05-16 13:44:45 -07:00
jitiphil
31cf1ba577 qcacld-3.0: Invalid checks for operating channel validation
Inside hdd_ndi_create_req_handler(), we need to check if
the operating channel is valid. The current checks do
not ensure the operating channel is checked against all
valid values.

Correct the check condition to validate the operating
channel against all valid values.

Change-Id: I01c035b996ab26779ee005bef437393875fdd95a
CRs-Fixed: 2233118
2018-05-16 13:44:39 -07:00
Alok Kumar
f70f79a9eb qcacld-3.0: Fix inadvertent logic error in htt_tx_desc_init
Currently, "channel_freq" is declared as uint16_t. But
htt_get_channel_freq returns "int" which is assigned to
"channel_freq". So, channel_freq != -1 is always true
regardless of the values of its operands.

Declare "channel_freq" as int and add the check if
channel_freq is positive.

Change-Id: I13ae35c1bee3cdf293227e320ede8d8cd2e968fe
CRs-Fixed: 2233556
2018-05-16 13:44:34 -07:00
nshrivas
825d101c45 Release 5.2.0.78M
Release 5.2.0.78M

Change-Id: Ibc9a4393c9ab1161fe2151acef18cf38e6aaa1a9
CRs-Fixed: 774533
2018-05-16 12:13:12 -07:00
Alok Kumar
b5a33a25cb qcacld-3.0: Fix missing break statement issue in between switch cases
Here the case is designed to fall through to the next case. So,
add a /* fallthrough */ comment where the break is expected.

Change-Id: Ide5b530c9b817a269fcee4ece679476930797ae7
CRs-Fixed: 2233186
2018-05-16 12:13:11 -07:00
Yun Park
e74e6090f6 qcacld-3.0: Remove wake_lock and rm_lock when WDI_UNIFIED_API defined
IPA RM is not used when WDI_UNIFIED_API is defined.
Remove to use wake_lock and rm_lock, which are created from RM setup.

Change-Id: I6c614fde7d6d7f0ab94aa9933578f3dca814a40e
CRs-Fixed: 2231424
2018-05-16 12:13:05 -07:00
nshrivas
1924919d6c Release 5.2.0.78L
Release 5.2.0.78L

Change-Id: I5e8820e00da68d1f427aed3e58d3c345e39f24f4
CRs-Fixed: 774533
2018-05-16 10:26:17 -07:00