Граф коммитов

1927 Коммитов

Автор SHA1 Сообщение Дата
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
Poddar, Siddarth
1dbc316690 qcacld-3.0: Add type_specific_data for PKTLOG_TYPE_SW_EVENT in the pktlog header
Add type_specific_data for PKTLOG_TYPE_SW_EVENT in the pktlog header
to parse it so that pktlog script can do further processing based on the
value passed in that field.

Change-Id: Ia68d9e3ea02942c050c133f4547a353634d65e1c
CRs-Fixed: 1062295
(cherry picked from commit 1ab48b89e671ee62b384c2cbd7fede68cf963da6)
2016-09-10 19:05:21 -07:00
Naveen Rawat
cb186cf882 qcacld-3.0: Fix nan data interface create
1) In function wma_update_hdd_cfg update tgt_cfg before calling hdd callback
   function.
2) In function hdd_init_nan_data_mode correct check for status returned from
   sme_open_session

Change-Id: Ibf86c348f95c6f5589c2089600dbe176b1fda5fe
CRs-Fixed: 962367
(cherry picked from commit c6e52d750fee0675efdbe08d7e6f0c274887cb65)
2016-09-10 19:05:19 -07:00
Rakesh Sunki
cf1c9abd5c qcacld-3.0: Fix NDP ping failure issue
After completing NDP initiator and response between two NDP peers,
ping failure between the peers is observed due to mismatch in the
broadcast station id set in the driver and the broadcast MAC address
for the NDI. This sta id is eventually used as local id to fetch the
peer associated with the sta id and extract the vdev id from the peer
handler,  which was pointing to the incorrect vdev leading to ping
packets drop in the firmware due to incorrect vdev id.

Assign the broadcast id for NDI same as the NDI self
peer's sta id, which will point to the correct vdev id.

Change-Id: I4a4eeae149a4347da236cb768cf41141d9efdaca
CRs-Fixed: 1059527
2016-09-10 18:49:07 -07:00
Anurag Chouhan
01cfa4e859 qcacld-3.0: Remove ani_global.h from qca-cmn
Currently ani_global.h is included in qca-cmn,
The change removes ani_global.h and there are
corresponding changes in Driver

Change-Id: I59684e475406386e250635bde88390797835c95f
CRs-Fixed: 1012452
2016-09-10 14:19:48 -07:00
Arun Khandavalli
f5c0e0cf0c qcacld-3.0: Update the net device setup for monitor mode
Netdevice setup for the Monitor mode/Device mode are different
with Dynamic mode change the adapter is allocated for normal mode
and the device setup is done according to the normal modes.
Once the device mode change request for monitor mode comes via con_mode
the driver shall change to monitor mode, when the mode switch happens
presently driver is using the same setup as station in monitor mode.

Update the net device setup for the monitor mode once the device changes
to monitor mode.

Change-Id: I38ff0e31b80f8e800a37c10431902ab092b627ba
CRs-Fixed: 1064063
2016-09-10 14:13:22 -07:00
Manjunathappa Prakash
2458ef0c66 qcacld-3.0: Make host htt.h in sync with FW
Make host htt.h in sync with latest FW htt.h

Change-Id: I7818c1156b38191aa6219c0e73ca3238c3474c1e
CRs-Fixed: 1055179
2016-09-10 14:12:08 -07:00
qcabuildsw
2072f396ed Release 5.1.0.26A
Release 5.1.0.26A

Change-Id: I931a9ecf31d438f50fe8b8454914d734f4254271
CRs-Fixed: 688141
2016-09-10 14:11:42 -07:00
Abhishek Singh
e36aa82922 qcacld-3.0: If association timeout send deauth to cleanup the peer session
qcacld-2.0 to qcacld-3.0 propagation

In the scenario where association times out because device has missed
the assoc resp sent by peer, the peer assumes the device to be
connected and thus when device again sends the auth for fresh
connection the peer sends deauth. Thus fresh connection also fails.

To avoid this send deauth after association time out, to cleanup
the session in peer.

Change-Id: I1f7bfbe804da0dc92ce4ece87dc65954b086133c
CRs-Fixed: 987455
2016-09-10 14:11:15 -07:00
Abhishek Singh
779a55cfaa qcacld-3.0: Print qpower enable/disable depending on the config value
qcacld-2.0 to qcacld-3.0 propagation

Driver prints qpower disabled even if command for qpower enabled
is sent to firmware.

To avoid confusion print qpower enable/disable depending on the cmd
sent to firmware.

Change-Id: Ifb135d4ad1691d0e5024aa2ef31880be271cac9e
CRs-Fixed: 1044603
2016-09-10 14:10:42 -07:00