Commit graph

1,936 commits

Author SHA1 Message Date
Hanumanth Reddy Pothula
366fa8e29f qcacld-3.0: By default set thermal power limit to 30dbm
This is a qcacld-2.0 to qcacld-3.0 propagation.

In present code, Host sets thermal power limits to 10dbm,
for both 2g and 5g, leading to connection failure.
Set Thermal Power limit to 30dbm for both 2g and 5g. So
that FW takes the default values from BDF.

Change-Id: I053108babfaa9ac2629cdb107ceb507c2f8891e5
CRs-Fixed: 1011361
(cherry picked from commit b25fb5987e792d286542e09f8d8fa30223115453)
2016-09-10 19:08:00 -07:00
Hanumanth Reddy Pothula
adf163ed1a qcacld-3.0: Resolve buffer overflow issue while processing GET_CFG IOCTL
qcacld-2.0 to qcacld-3.0 propagation.

There is a possibility of buffer overflow while processing
GET_CFG IOCTL to retrieve ini parameters from a global array,
because of invalid if condition.
Resolve buffer overflow issue by correcting if condition.

Change-Id: I8881abde0b543d7b1562968ecbb6240a0ca552a3
CRs-Fixed: 1000853
(cherry picked from commit 2dff47b5bc87559c430da20bf563975749b2a8cd)
2016-09-10 19:07:58 -07:00
Hanumanth Reddy Pothula
7f7a27115c qcacld-3.0: Resolve memory leak issues
qcacld-2.0 to qcacld-3.0  propagation

In SME, while processing set beacon parameters, free
dynamically allocated memory, once done with the it.

Change-Id: I281ef5eb9492fe75d639b2bef7ed588aacee8e74
CRs-Fixed: 974567
(cherry picked from commit feaa49e6b906f33a98a11f5ee35c947abe5d28bd)
2016-09-10 19:07:56 -07:00
Hanumanth Reddy Pothula
1891fe4e6a qcacld-3.0: Resolve static analysis issues
qcacld-2.0 to qcacld-3.0 propagation

Resolved  static analysis issues,  variable initialization,
return on failure, validate data before using.

Change-Id: Ia6ffd422ae3f9bc8419f32aa914839a091841335
CRs-Fixed: 975049
(cherry picked from commit 3284a163a31f49bfd7f2b0f2319ee30c3710ee64)
2016-09-10 19:07:02 -07:00
Manjeet Singh
c5734186b5 qcacld-3.0: Enable arpOffload and NSOffload features by default
qcacld-2.0 to qcacld-3.0 propagation.

Allow IPv4 and IPV6 offloads to FW by enabling ARP and NSoffload feature
by default even if it's not explicitly enabled in the ini file.

Change-Id: I9af928f5ea6e2b9589d3c8666abfa3927fe5e908
CRs-fixed: 1053887
(cherry picked from commit e0dba23a18a4484ae799e9db1eb867446e9ba0c8)
2016-09-10 19:06:55 -07:00
Manjeet Singh
e80d6d806e qcacld-3.0: Support LDPC and STBC ioctls on SAP
qcacld-2.0 to qcacld-3.0 propagation

Currently the following private ioctls are only supported on STA-type
interfaces: set_ldpc, get_ldpc, set_tx_stbc, get_tx_stbc, set_rx_stbc
and get_rx_stbc. Update the driver to support these commands on
SAP-type interfaces as well.

Change-Id: Ic135dcbd74918a2d27802e3edc34444545aa18ff
CRs-Fixed: 844097
(cherry picked from commit bf5ed2ca492bbe66b8825ad68ce975454f989dd6)
2016-09-10 19:06:52 -07:00
Manjeet Singh
0f2ce5c0c4 qcacld-3.0: Add ini support for extscan
qcacld-2.0 to qcacld-3.0 propagation.
Added ini parameter for extscan so that scan can be aborted
if extscan ini is not enabled.

Change-Id: I7bfcd88901512de6b70af94d1ebd76894bb14755
CRs-Fixed: 927236
(cherry picked from commit 5af7ebadac8ea8ccd11af6c03d5d3a4cf209e85b)
2016-09-10 19:06:50 -07:00
Manjeet Singh
2d3b0c5876 qcacld-3.0: Avoid Channel 0 in softap acs channel list
qcacld-2.0 to qcacld-3.0 propagation.

If ACS is enabled in hostapd configuration,hostapd sends
a list of channels to HDD for softap bring-up. If hostapd
finds a invalid/unsupported channel in its channel list,
it will send a 0 for that channel. Since HDD always takes
the lowest channel as starting channel for scan, the scan
will always include 2.4Ghz channels even if channel mode
is set to a. Hence HDD should ignore these invalid entries
in channel list.

CRs-fixed: 959490
Change-Id: Iddaf6c4ba14e22b476f22f1f098faf726f4407ec
(cherry picked from commit 9f410939ff801316a153c44c603ce575fe6d15d5)
2016-09-10 19:06:48 -07:00
Mahesh A Saptasagar
fb33542c94 qcacld-3.0: Log info about deauth/disassoc sent over air
qcacld-2.0 to qcacld-3.0 propagation.

Log success or failure status whether disassoc/deauth sent successfully
over the air.

Change-Id: I527bd35546eb21157498f235fe74710dd3f7688e
CRs-Fixed: 1016866
(cherry picked from commit d081fef10c8440830cea8d6e598087d5021687ae)
2016-09-10 19:06:46 -07:00
Mahesh A Saptasagar
ebb47fa293 qcacld-3.0: Block interface down until pending scan request is aborted
qcacld-2.0 to qcacld-3.0 propagation

From Kernel-3.18 onwards pending scan request is handled
as part of NETDEV_DOWN event, by invoking the cfg80211_scan_done
callback which frees the scan request structure. To support this,
driver will not invoke scan_done_callback if interface is down.

In case, if interface down and up are called back to back there
is a chance that kernel frees scan request as part of NETDEV_DOWN
and after which before driver triggers scan_done_callback if
interface is made up, driver scan_done_callback is through its
execution and accesses the freed scan request results in kernel
panic.

To mitigate this, don't return from hdd_stop until scan request
is aborted. Though this fix is to avoid kernel panic due to 3.18
kernel specific changes, it is acceptable across all the kernel
versions.

Change-Id: Iba8bd7a32fac33e8a0c3eea293aad682a1105397
CRs-Fixed: 977264
(cherry picked from commit 153dba8b716c3d10a1745df6e2da09c0c05d9b01)
2016-09-10 19:06:43 -07:00
Anurag Chouhan
04dbf6de4d qcacld-3.0: Disable RA filter when BPF is enabled
qcacld-2.0 to qcacld-3.0 propagation.

In current implementation, RA filter is enabled irrespective of the
BPF filter status. This change checks if BPF configuration in ini as
well as in target config is enabled, then RA will be disabled.

Change-Id: I85df0828af665d2bcc13c865b0ba40ebf882fffe
CRs-Fixed: 1058884
(cherry picked from commit 8dda6e83eb85ef9f0342ab23954e093c6dfebe2e)
2016-09-10 19:06:41 -07:00
Anurag Chouhan
c40929266c qcacld-3.0: Add support for new cfg80211 connect api
qcacld-2.0 to qcacld-3.0 propagation

The new cfg80211 connect api 'cfg80211_connect_bss' takes
a new input parameter, the connected bss. This is required
for the kernel to map its current_bss to the bss on the
correct channel when more than one bssid, ssid pair is
present on different channels with the kernel. Without this
the kernel might report a wrong channel as the associated
channel. Hence add support in driver to use the new connect
api.

Change-Id: I1e5ded1b40ca324469917acebf17a03cc1e1c679
CRs-Fixed: 1008794
(cherry picked from commit fc06d173ce8155c1ee470f0a135490d42237d66e)
2016-09-10 19:06:39 -07:00
Anurag Chouhan
22520000f8 qcacld-3.0: Prevent roaming latency caused by LL stat ops
qcacld-2.0 to qcacld-3.0 propagation

Framework may initiate LL stat ops while roaming is
in middle, which in turn block the call or wait for
timeout hence introducing roaming delay.
This delay can be overcome by avoiding LL stat ops
if it is triggered in between the roaming.

Change-Id: Ie64c8c56f905cc297057e62b69c010cf1e0974ed
CRs-Fixed: 881429
(cherry picked from commit 125d2e3ce70d7829ed6b37ee032f6c2036974587)
2016-09-10 19:06:37 -07:00
Anurag Chouhan
1a73428e0d qcacld-3.0: Don't re-initialize timer if initialization is evaluated to zero
qcacld-2.0 to qcacld-3.0 propagation.

Do not re-initialize periodic probe request timer if the calculated
value for "initScheduleTimeInMsecs" from max channel timer is zero.

Change-Id: I7cc03d84088c8c3f2b1e704c2e6c8c24c1a01189
CRs-Fixed: 909143
(cherry picked from commit 0d91c221310d699374b9d4373f7b5cd52ece3ac8)
2016-09-10 19:06:35 -07:00
qcabuildsw
500c1b329d Release 5.1.0.26E
Release 5.1.0.26E

Change-Id: Ib42d0372760133d27074f70bd0b9d60bb0409f69
CRs-Fixed: 688141
(cherry picked from commit 78aca0df5756decc780f8e62253f9784c6fa6858)
2016-09-10 19:06:33 -07:00
Kondabattini, Ganesh
702d90e5a7 qcacld-3.0: Set default key index after bss start
qcacld-2.0 to qcacld-3.0 propagation

In AP+AP scenario, it is possible that hostapd can set default
key index before there is a session associated with pAdapter.
So save wep default key index in pHddApCtx and set it after bss start.

Change-Id: I1c27ad8984cb1ece266405fb5c427e59dd01db3a
CRs-Fixed: 938522
(cherry picked from commit d93be6957228143d757f299fcd32d2428860f9ee)
2016-09-10 19:06:31 -07:00
Kondabattini, Ganesh
b72e25cb7f qcacld-3.0: Define data structures for new AP requirements
qcacld-2.0 to qcacld-3.0 propagation

Defining data structures for below new requirements.
        - beacon_tx_rate
        - vendor_ie
        - vendor_ie_len
        - vendor_ie_assoc_policy
        - sta_inactivity_timeout
        - tx_pkt_fail_cnt_threshold
        - short_retry_limit
        - long_retry_limit
        - ampdu_size
        - supp_rate_set
        - extended_rate_set

Change-Id: I9d05cd7b8e051c4e9e4912cf866206ae32ec293d
CRs-Fixed: 1020078
(cherry picked from commit 8f57eee853baff54397c68c8cd71aeb50610a56a)
2016-09-10 19:06:29 -07:00
Kondabattini, Ganesh
13bb4b1db8 qcacld-3.0: skip DFS channel if DFS master mode is disabled
qcacld-2.0 to qcacld-3.0 propagation

In function "sap_select_channel" avoid selecting DFS channel if
DFS master mode is disabled.

Change-Id: I4b45401500db32f0677e5364e4cf415dca2ca23c
CRs-Fixed: 939153
(cherry picked from commit 0a1ecad5876e7526a9283cba331e22453e03490e)
2016-09-10 19:06:27 -07:00
Agrawal Ashish
18361c5557 qcacld-3.0: Allow different beacon intervals for SAP
qcacld-2.0 to qcacld-3.0 propagation

Currently if user space sends two different beacon
interval in AP+AP, driver is not updating correct beacon interval.
Beacon interval should be sent as per session.

Change-Id: I13653701e7ed6fb2eb643bbb8e20e7c0102c2ec2
CRs-Fixed: 1037455
(cherry picked from commit 183b9b33087f5afc925d5899b468450e88b97998)
2016-09-10 19:06:25 -07:00
Padma, Santhosh Kumar
e7835652d6 qcacld-3.0: Add diag events for debugging
qcacld-2.0 to qcacld-3.0 propagation

Currently there are no diag events to debug auth, assoc timeouts
and memory failure. Add such diag events which can be useful during
failures.

Change-Id: Iec4c2a9946fbef388959fdc796273944d3be8003
CRs-Fixed: 954888
(cherry picked from commit 96f330d11abe16a35c13a87346e8e60cbd0c7141)
2016-09-10 19:06:23 -07:00
Padma, Santhosh Kumar
79412edee3 qcacld-3.0: Validate pHashTable
qcacld-2.0 to qcacld-3.0 propagation

When deauth/disassoc is received from peer at the same time when
cleanup in progress because of disconnect from supplicant, there
is a chance that pHashTable can be NULL. Memory pointed by
pHashTable is freed during peDeleteSession, which is called during
cleanup. In dphLookupHashEntry, pHashTable is referenced without
any NULL check, which can lead to crash. Fix this by validating
pHashTable for NULL check.

Add a NULL check in _limProcessOperatingModeActionFrame before
referencing sta context to resolve potential KW issue.

Change-Id: I74d5c739cade19941320ee02eddc09e4fc74b105
CRs-Fixed: 898375
(cherry picked from commit b303090fde8d3a14dbf6f9c80d635e27718a583d)
2016-09-10 19:06:21 -07:00
Padma, Santhosh Kumar
17fac9f9c5 qcacld-3.0: Reset memory allocation of BSS description
qcacld-2.0 to qcacld-3.0 propagation

In CCX, BSS description is sent as part of beacon report. If BSS
description has random values, it leads to CCX certification failure.
Fix this by resetting memory allocated with zero. Also, reset memory
allocated to send beacon report to avoid this issue.

Change-Id: I445942b64ca9f382f8d24ca19665d6bda2341a80
CRs-Fixed: 931441
(cherry picked from commit c7a96bbd498d6d096f1dcade7fce0f6c1732248e)
2016-09-10 19:06:20 -07:00
Agrawal Ashish
6c9bca7802 qcacld-3.0: Don't limit channel list to max 32 channels
qcacld-2.0 to qcacld-3.0 propagation.

In __iw_get_channel_list, driver populates valid
channel list from nv table.
Currently, the driver only populates 32 channels.
The driver should populate complete valid channel list.
Moreover, driver should not include DFS channels in channel list
if the device is not set to DFS_MASTER mode.

Fix these issues by returning all supported channels.

Change-Id: I4981941834f25b9d213c20715ca8237a4b885473
CRs-Fixed: 988849
(cherry picked from commit 7a4c5379f991bb4e72393e775f4664517d0a68aa)
2016-09-10 19:06:17 -07:00
Govind Singh
8c54d6cf0c qcacld-3.0: Do not allocate LRO desc for flow greater than max range
HOST driver supports max LRO_DESC_POOL_SZ flows that can
be submitted to LRO manager. Currently there is no check
for flow greater than LRO_DESC_POOL_SZ and this is resulting
in invalid de-reference of hdd_lro_desc_entry.

Do not allocate LRO desc for flow greater than max range and
use normal rx path for flow greater than LRO_DESC_POOL_SZ.

Change-Id: I7f44c750afc78f5e044c9405dff30e729d3d28f3
CRs-Fixed: 1064624
(cherry picked from commit 2a8773e73b6c00edfcc621b4c1cba3bae677fb66)
2016-09-10 19:06:15 -07:00
qcabuildsw
8ff87d80f6 Release 5.1.0.26D
Release 5.1.0.26D

Change-Id: I1b02ff4038a6e55a6860ccb6c0d0027aec3a4da4
CRs-Fixed: 688141
(cherry picked from commit 9315cb9888f85f24102a55dc021644281221d75f)
2016-09-10 19:06:13 -07:00
Anurag Chouhan
77564183fc qcacld-3.0: Fix buffer over read in iwpriv WE_UNIT_TEST_CMD command
qcacld-2.0 to qcacld-3.0 propagation.

In current driver, WE_UNIT_TEST_CMD has below problem.
- apps_arg[1] can have zero value and can lead to
  buffer overead

Change the code to handle the number of args if user has
given zero.

CRs-Fixed: 1029540
Change-Id: Idc8e1d77d9623daeb98d0c4b7ad8a8d6cfa9c2d2
(cherry picked from commit 063a0db662927174d22af3b78402c63d7c388112)
2016-09-10 19:06:11 -07:00
Anurag Chouhan
f00931b6fb qcacld-3.0: Remove the support for setwpaie ioctl
qcacld-2.0 to qcacld-3.0 propagation.

This ioctl gets call during the start of SAP/hostapd with wext
interface and which is obsolete, currently using nl80211 interface
for the same

Remove the code related to setwpaie ioctl

CRs-Fixed: 1000913
Change-Id: Ia45860d7143639aa62d02afe8c08e283e20ba27a
(cherry picked from commit faa23a5a51fcad2cd38e4f4a41c10d8acdd42d36)
2016-09-10 19:06:08 -07:00
Anurag Chouhan
05d124f8cb qcacld-3.0: Logging level changes on wlan HOST
qcacld-2.0 to qcacld-3.0 propagation.

As there are a lot of prints dropped on the console in
short duration, it leads to interrupt disablement on
the cpu.

So reducing the logging level of log statement from
ERROR to INFO

Change-Id: I3eefac49378a7bfbcc235b1dd3362e1213fa1f42
CRs-Fixed: 886644
(cherry picked from commit 06c7d1b4aa89fb5c25241cec0558d559ee93b683)
2016-09-10 19:06:06 -07:00
Anurag Chouhan
1a77236aa5 qcacld-3.0: Reduce unwanted netlink log messages
qcacld-2.0 to qcacld-3.0 propagation

Reduce unwanted netlink log messages and modify the error value
print format from hex to decimal.

Change-Id: Ia94efe17b80d5f3c4a7006b914f4f0586360fded
CRs-Fixed: 804176
(cherry picked from commit f986a945d7124c5bcc962dc0b7f0642828b7687f)
2016-09-10 19:06:04 -07:00
Anurag Chouhan
43e0c7541b qcacld-3.0: Validate ENABLEEXTWOW command
qcacld-2.0 to qcacld-3.0 propagation.

Validate arguments for ENABLEEXTWOW command
and return failure on invalid arguments.

Change-Id: I73556989f79754bca1bf4226ad71c2358b3a7526
CRs-Fixed: 857123
(cherry picked from commit 15e232c5aab90e6ed53d3a9a7f8d631ae451402e)
2016-09-10 19:06:03 -07:00
Sachin Ahuja
02dd2e71c5 qcacld-3.0: Deinit memdump only when it is initialized
During driver initialization, if hif_register_driver timeout
then memdump is not initialized. Due to this timeout, unregister
driver is called which deinitialize memdump which cause crash as
uninitialized mutex is accessed in memdump_deinit.
To fix this issue, deinit memdump only when the init is successful.

Change-Id: I781717a2a160aa09c9f60ebface1238507d1a623
CRs-Fixed: 991443
(cherry picked from commit 54eda9379d7dec74ac6c3efd1659dffdd32c0680)
2016-09-10 19:06:00 -07:00
Sachin Ahuja
0c6d507d28 qcacld-3.0: Update the MAX Tx Power cap to 30dbm
Currently Host configures MaxTxPower as 22dbm
during join which fails the TRP requirement to meet
23dbm.
Change the code to configure the max tx Power to 30dbm
in FW during join.

Change-Id: I926288972e17a9276af2744d6a070b82333d5242
CRs-Fixed: 1023616
(cherry picked from commit 206e7dd1e735a3ff0a94f2d978b606dcf87e08fd)
2016-09-10 19:05:59 -07:00
Mukul Sharma
eae172c061 qcacld-3.0: Prevent Null pointer access during tdls exit
qcacld-2.0 to qcacld-3.0 propagation

Prevent Null pointer access during tdls exit.

Change-Id: I76f5896ae4c51d4816cc0389151e1e27b07d2193
CRs-Fixed: 1017282
(cherry picked from commit bfed788cb89d39092c755cb35b6a6aa4b8772503)
2016-09-10 19:05:56 -07:00
Mukul Sharma
dd93cbca9e qcacld-3.0: Prevent buffer overflow in QCSAP_IOCTL_VERSION
qcacld-2.0 to qcacld-3.0 propagation

The QCSAP_IOCTL_VERSION IOCTL is registered with a maximum GET
buffer length of QCSAP_MAX_SC_IE = 256 bytes. But while filling
buffer, Host allows to fill till WE_MAX_STR_LEN which may lead to
buffer overflow.
As a part of this fix, Host ensure to register with maximum
WE_MAX_STR_LEN buffer length.

Change-Id: I5ba0268e978c7ddadabc96a4eba18140ff7db3c6
CRs-Fixed: 1001142
(cherry picked from commit 85f4f75e8396e27467716555d68b3a18dd57b6fe)
2016-09-10 19:05:54 -07:00
Manjeet Singh
e7ecb7cbb8 qcacld-3.0: Add support for sifs burst duration ini
qcacld-2.0 to qcacld-3.0 propagation.

Add code for implementing sifs burst duration ini to be sent to be FW
as part of WMI_PDEV_PARAM_BURST_DUR command.

Change-Id: I96ccda760045ecd54592b649116f3e7fe4a4f31b
CRs-Fixed: 1028623
(cherry picked from commit 7a367f1535299b73d1886529e0a557853d943518)
2016-09-10 19:05:52 -07:00
Manjeet Singh
01327cc3ec qcacld-3.0: Validate adapter magic during bus bandwidth check
qcacld-2.0 to qcacld-3.0 propagation.

hdd_bus_bw_compute_cbk function is responsible for computing
bus bandwidth by checking TX/RX stats per HDD adapter after
taking them from adapter list. However, it's scheduled on a global
timer so the following scenario can arise:
1)At time of scheduling, HDD adapter is valid and is passed.
2)During TX/RX stats check, HDD adapter is freed as a result
of interface down.
3)Null hddCtx from adapter is accessed as a result and kernel
panic occurs.

Thus,validate adapter magic before accessing the hddCtx stored
in adapter.

Change-Id: If076e122db0538d01140e16305f046e68a86212a
CRs-fixed: 1045004
(cherry picked from commit 27254744c270a98d15bb17e2ed48649450070385)
2016-09-10 19:05:50 -07:00
Manjeet Singh
fde0c04dc2 qcacld-3.0: Pass valid data to kernel upon processing GET_STAWPAIE IOCTL
qcacld-2.0 to qcacld-3.0 propagation.

While processing GET_STAWPAIE, based on interface, driver calls
WLANSap_getstationIE_information()/csrRoamGetWpaRsnReqIE() to
get WPA-RSN IE data. For suppose WPA-RSN IE length is greter than
DOT11F_IE_RSN_MAX_LEN(114), then these functions returns failure
by updating only data length. But as calling functions are not
checking return value, driver updates kernel buffer with invalid
data.
Add check to validate WLANSap_getstationIE_information() and
csrRoamGetWpaRsnReqIE() return value.
Also update DOT11F_IE_RSN_MAX_LEN to 255 from 114 and update
IOCTL numbers.

Change-Id: If021318e526c1b1a5616f9447be11174aa4c6a34
CRs-Fixed: 1000857
(cherry picked from commit cc0e12838a8d5ca3fe509bb152b73caeb478744c)
2016-09-10 19:05:47 -07:00
Manjeet Singh
fdd2ac755d qcacld-3.0: Fix type mismatch in bitwise operator
qcacld-2.0 to qcacld-3.0 propagation.

Type mismatch is present in bitwise operation for TDLS specific
variables in hdd_update_tgt_services.
Change bitwise operation to logical as the variable in question
is used like a flag and not as a bitfield.

Change-Id: I63692816d0f4d867206a3d6b07363bbb054c6062
CRs-Fixed: 1017937
(cherry picked from commit d3e615b8fa6bcc58321ccc670b797fea7467ffc4)
2016-09-10 19:05:45 -07:00
Manjeet Singh
75c2f97be4 qcacld-3.0: fix buffer overflow in linkspeed ioctl
qcacld-2.0 to qcacld-3.0 propagation.

In linkspeed ioctl handler, mac address array is allocated a
size of MAC_ADDRESS_STR_LEN, which is 18 bytes taking account of null
terminator '\0'. But in code, a null terminator is being manually added
at index MAC_ADDRESS_STR_LEN. This would overflow the buffer and hence
null terminator should be added at MAC_ADDRESS_STR_LEN -1.

Change-Id: I16c2d0f787dfa339780db7d888aff37355c32322
CRs-fixed: 1000861
(cherry picked from commit 1ebc752f4b5c0a32f3b063ffe89c16fa0e2d81a0)
2016-09-10 19:05:43 -07:00
qcabuildsw
7c04b1ab17 Release 5.1.0.26C
Release 5.1.0.26C

Change-Id: I0c04b972eaef33eaad3001ea3f3682acd36fb667
CRs-Fixed: 688141
(cherry picked from commit b3949fa06a87310ed41daba3e0dd357eeb7cdc72)
2016-09-10 19:05:41 -07:00
Krishna Kumaar Natarajan
e1a59839df qcacld-3.0: Update tlv_check_required() to handle all WoW reason
Update tlv_check_required() to handle all WoW reason to prevent failure
of parsing the wow packet buffer.

WOW event AP_LOST_ASSOC reason is not handled in tlv_check_required function
which returns true to parse the wow packet buffer which is incorrect. Enhance
the tlv_check_required function by adding only the reasons that require
tlv parsing and return false for others.

Change-Id: I4079086c4a49279921f6af8dda72b32d923022c2
CRs-Fixed: 1064249
(cherry picked from commit 1cc8d077fb321e2b83a5f15bcd2a3bdb7d8ccb19)
2016-09-10 19:05:40 -07:00
Krishna Kumaar Natarajan
6553ea16be qcacld-3.0: Handle protected dual of public action frame
Handle protected dual of public action frame in lim_process_action_frame.

GAS comeback request/response frames will be converted into protected dual of
public action frame on encryption. These frames should be passed to userspace
for further processing.

Change-Id: I25e7f06369cdd238a561ddb5a825a63fe35f7b17
CRs-Fixed: 1063665
(cherry picked from commit 7745335fbdebcd81b274c703e5a080d61dd86428)
2016-09-10 19:05:38 -07:00
qcabuildsw
b33a1b8392 Release 5.1.0.26B
Release 5.1.0.26B

Change-Id: I17835a32e5ef3da009dd42b841a73da832b93863
CRs-Fixed: 688141
(cherry picked from commit 050f0dd635c69769575ef00dbc1214de497ac282)
2016-09-10 19:05:35 -07:00
Yun Park
046101c785 qcacld-3.0: Fix to allow intra-bss forwarding when it is not disabled
Enable to forward Intra-BSS Rx packets when apDisableIntraBssFwd is
not set in the AP context.

Change-Id: Id845abec76826910bec021b79786f5d3d7a27b4d
CRs-Fixed: 1062536
(cherry picked from commit ef8d7e584def1aaa844d671bb11c6f7225dea192)
2016-09-10 19:05:33 -07:00
Sandeep Puligilla
2ff3ebe4a7 qcacld-3.0: Dont send response to LIM during roam sync
WMA is sending response to ADD_STA and
ADD_BSS request during failure scenario.

Add conditions not to send the response to LIM
during the roam sync indication operation.

Change-Id: Iad9a8b28e1029ebd12e2022fb38d2aa01a03e9aa
CRs-fixed: 1061963
(cherry picked from commit b23176083295303da6847274120af8ab48e62730)
2016-09-10 19:05:31 -07:00
Govind Singh
d9b6ca8632 qcacld-3.0: Do not enable LRO for non STA adapter
Currently LRO is not enabled for non STA interface.
However during p2p adapter creation LRO is getting
enabled as p2p adapter is being created with change
interface handler with STA interface ID.

Check adapter device mode during LRO enable and bypass
if LRO enable is called for NON STA interface.

Change-Id: Ib0be2cfdf110bad9a76b47b57ad9e0319bad1947
CRs-Fixed: 1064044
(cherry picked from commit edbf9452cd01fdfef0f5b6014e534387530eeb78)
2016-09-10 19:05:30 -07:00
Manishekar Chandrasekaran
1004ad9cae qcacld-3.0: Check for active STA/SAP connections before SAP channel switch
Check for active STA and SAP connections before switching the operating
channel of SAP to a DFS channel. SAP moves to a DFS channel only if
this movement ensures that the SAP does not go off the DFS channel which
is needed for continuous radar detection.

The existing check looks for the number of open sessions. But these
sessions may or may not be active. So, replace this check with suitable
APIs which will check for active sessions.

Change-Id: Ib37427a9c62a785abb5e22c14ec23f09e60bf4b7
CRs-Fixed: 1063212
(cherry picked from commit d470e33f6d390b84dd98892a1b4526fd45348c2b)
2016-09-10 19:05:28 -07:00
Sreelakshmi Konamki
2252853d10 qcacld-3.0: Reduce wakelock resume wlan timeout to 1 sec
qcacld-2.0 to qcacld-3.0 propagation

Supplicant can get the scan results within 1 sec, 2 sec is aggressive.
Reduce time duration of WIFI_POWER_EVENT_WAKELOCK_RESUME_WLAN
from 2 sec to 1 sec.

Change-Id: I83a2c674f1e42fc78480b194ad08b903b8fecffa
CRs-Fixed: 1060384
(cherry picked from commit 75e507e42cb2d9fc353980085d1302fda43b5fae)
2016-09-10 19:05:26 -07:00
Sreelakshmi Konamki
8dfe91af5f qcacld-3.0: Fix to move newly added enums to the bottom of the list
qcacld-2.0 to qcacld-3.0 propagation

Change-id Iac45ffc1736eecc40e203174888e296767b50a0d and
Iced4b80de60f9640cad0342afac57f9a17c2a3e2 added new entries in between
the existing enum list. Due to this stability scripts decodes
them incorrectly.

To fix this, move new entries to the bottom of the enum list.

Change-Id: If0b759f58dd6831fad45ac3d321989a550fef405
CRs-Fixed: 954222
(cherry picked from commit 1f7fcef8e5190d0a1f75185bf874a4c1b36db26f)
2016-09-10 19:05:24 -07:00
Sreelakshmi Konamki
beacc2eae2 qcacld-3.0: Resolve unknown code issues in MTRACE logs
qcacld-2.0 to qcacld-3.0 propagation

Some MTRACE logs returns 'unknown code' instead of code and data passed
to MTRACE. To resolve this unknown code issues in MTRACE logs,
add any missing MTRACE code enums in corresponding trace functions.
Both mac_trace_msg_tx() and mac_trace_msg_rx() were not handling
eWniMsgTypes enums, we don't have module Id for SME to handle
in those functions itself. So, modified mac_trace_msg_tx() to mac_trace().

Change-Id: Ia994c971178e24843f652b67336afeaec5e949ab
CRs-Fixed: 871983
(cherry picked from commit 5e12a6f7a67de546c8567341f35707da61cf00b8)
2016-09-10 19:05:23 -07:00