qcacld-2.0 to qca-wifi-host-cmn propogation
Add support to get the boot time from kernel in nano seconds.
Change-Id: Iaa512248a5e56d77cff39da562e0c9ee4eaeeefd
CRs-Fixed: 1107219
As part of cleaning up direct printk calls in WIN driver, a new
generic wrapper API QDF_PRINT_INFO() is added that is based on
the converged QDF debug framework.
All printks in the WIN driver will be replaced by calls to QDF_PRINT_INFO()
which will in-turn compile converged QDF trace API. Generic shared print
control index and module ID are defined for this purpose.
Change-Id: I818fbce9e46526ccdb4824d988b76c43e43eb3a4
CRs-Fixed: 1106829
Initialization/deinitialization of mgmt txrx context,
mgmt desc pool, declaration of APIs for sending and
receiving mgmt. frames.
Change-Id: Icc1f181761721387bcd1f134c937204bfd3b645f
CRs-Fixed: 1103247
The size of adf_dp_trace_cb_table array is 30, possible over
read of adf_dp_trace_cb_table array in adf_dp_add_record API.
Add index condition check for adf_dp_trace_cb_table to avoid
array over read.
CRs-Fixed: 1041684
Change-Id: I4f0f9dda239efd404dff3f92b68a45aaf71875ae
Define object manager framework. The object manager framework implements
the management of UMAC objects(PSOC/PDEV/VDEV/PEER). All components of UMAC
have to register their APIs with object manager to be invoked on object
creation/deletion.
It also provides public APIs to retrieve objects.
CRS-Fixed: 1096009
Change-Id: If1465aed8b5e05e23ee0e1d9c9818dbf92fbe55a
QDF already has event complete API. Define a separate new
API for exit in QDF and re-use qdf_event_set for event
completion.
Change-Id: If332425ee71b0a4759e0550a33add35e61680309
CRs-Fixed: 1101614
qcacld-2.0 to qcacmn propagation
In certain situation, allocated Tx buffer count could be an arbitrary
number, so not power of two. This could violate F/W ring buffer count
requirement. If allocated Tx buffer count is not power of two, round
down it to the nearest power of two.
The same change is also applicable for INI parameters IpaUcTxBufCount
and IpaUcRxIndRingCount.
Change-Id: I7c119886a669c79adbc7bd9b2c1c1d93de41cf72
CRs-Fixed: 973723
Delete obsolete CONFIG_MCL from qdf_mc_timer.c as cds_mc_timer.h/.c
are going away.
Change-Id: I9aaa7301ce46b001a1ce99ea46d5d92db0cfe73c
CRs-Fixed: 1095867
Fix below in DPTRACE feature:
1) Change timestamp in DPTRACE records to hr:mm:sec.usec format.
2) Change default configuration in qdf_dp_trace_clear_buffer()
to match that of qdf_dp_trace_init().
Change-Id: Ibad674e3b94a2c7ac5cbefa5fc18efb48f6ca694
CRs-Fixed: 1098928
Increase the timeout duration for protocol events
for napier emulation platform.
Change-Id: I358259801018dc7ce48bd85f35594dec44704017
CRs-Fixed: 1089638
vap_hardstart function was added as a structure element to NIC_DEV
as part of OL/DA modularization. These changes were added in the
NIC_DEV structure in osdep_adf_internal.h
Move declaration to NIC_DEV in qdf/linux/src/i_osdep.h introduced
as part of QDF convergence.
Change-Id: Ie9ea734818cbf4b335831155f55701549b13f435
CRs-Fixed: 1090532
Wifi 3.0 compile against cdp apis.
Make compilable against mobile code base.
selective hw common header include.
Change-Id: I051f917001c0d13c762d9cb5a3ec141cd278d0e7
CRs-fixed: 1075736
qcacld-2.0 to qcacld-3.0 propagation
Firmware can't support all station feature and 32 ibss clients
in one bin because of the mem limitation. So host supports to
download IBSS firmware bin if con_mode=6.
CRs-Fixed: 962246
Change-Id: I6c3dca17c82fdfd2bdadcee319cc157e6aa2ead9
Since dump_hex_trace is defined as a static function,
it should not be exported. The 2 scopes conflict.
Change-Id: Ia39a4fdcffeffa452b684f77d015eabd421e89e8
CRs-Fixed: 1089727
Mark the timeout messages in qdf_dp_display_record with
the 'DPT:' prefix and print them with the same error
level as other DPT messages.
Note that there are allready error level logs in HDD to
indicate that a timeout occured. The value add here is that
this timeout is noted in the contect of DPTRACE where prior
successfull packets will also have been logged.
Change-Id: I87b041895462474d37d092d48aa4c7e957ff45c5
CRs-Fixed: 1089725
DPT prints were flooding kmesg and causing watchdog bark
in stress testing cases. Reduce log level to info and
only include the prints in the driver log.
Change-Id: If6ba6786cfe9ff050a21673002ef273a670c3f68
CRS-Fixed: 1089051
Make changes for per per Rx context LRO manager, this addresses
all parallel Rx concurrency issues. There by removes all the contention.
Change-Id: I90604ffdf7b7fd930eee636426a4c7fc9b92c7d7
CRs-Fixed: 1079320
qcacld-2.0 to qcacld-3.0 propagation
MTRACE logs timestamp format is different from logcat logs,
and it's difficult to correlate with other logs.
This fix changes the timeformat of MTRACE logs
from qtimer ticks to hr:min:sec:msec
Change-Id: I45e5d28fbeccd757648f05ce4e593d8ca4fe7804
CRS-Fixed: 1049125
Currently on a HDD Tx timeout, we are recording the event in DP Trace
framework. Currently the framework is unable to handle calls where skb
is NULL.
Add code to handle cases in qdf_dp_trace where the skb could be NULL.
Change-Id: I4d04cd59f11f19c4ba81219925c7f3011c97de29
CRs-Fixed: 1083941
Enable logging of DPTRACE logs at each layer of driver and at tx
completion for all tx as well as rx protocol packets.
Change-Id: Id568c19196702034989a0f55490bc62667b3b20e
CRs-Fixed: 1083002
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code that is generating warnings. Fix all warnings
in qdf.
Change-Id: Ib499e7d0a5bfb6d2e5a7eaa7fbe769bb2b49772a
CRs-Fixed: 1076314
Propagation from qcacld-2.0 to qcacmn.
Print proto type for ICMP and ICMPv6 packets which
cause wow wakeup in HOST driver.
Change-Id: I6d8cf8ad65652205bfad1a3531daf48a42a79350
CRs-Fixed: 1080772
This is a qcacld-2.0 to qcacld-3.0 propagation.
pr_debug() should not appear by default in kernel log (kmsg).
DEBUG is a kernel macro, since host driver is using the same name macro,
pr_debug log statements are appearing in kmsg.
Fix this by moving the code under DEBUG to WLAN_DEBUG and
remove DEBUG macro from Kbuild.
Change-Id: I5bb385f91f9b6ba15629a5878625fefc21d4a7e1
CRs-Fixed: 1003261
These logs were being printed in the kmesg durring every unload.
Questions about these logs wasted time and indicated the logs were
too prominent and confusing.
Only log nbuf tracking free list stats to the kernel log when
unexpected conditions occured. Also distinguish between pre-filled
tracking nodes and nodes that were used to track nbufs.
Change-Id: I835ef2a04500dbab3229e6765fe7a168c05837fa
CRs-Fixed: 1072098
Function tables based on enums should have entries for all available enum
values.
Change-Id: I452006d177c7651c43938de47fdff5fe78d2e582
CRs-Fixed: 1072077
qcacld-2.0 to qcacmn propagation
Dump state information of HDD, SME, PE and WMA layers
into a buffer. Contents of this buffer will be copied
into user space using proc entry /proc/debugdriver/
driverdump.
Change-Id: Ifbb102e440d7df20defa1a397964cb9b55082bf9
CRs-Fixed: 955357
Introduce new enum in ftype to identify rx stats data pointed by fctx.
It is added so that only a pointer to the feature specific data can be stored
in fctx. ftype will be used to identify what feature in currently being
pointed to by fctx .
Change-Id: Ic4d8e23c27873875a9cac25e9a5c26096b1705f3
CRs-Fixed: 1055391
Memory leak is observed while running multicast to unicast conversion tests.
The reason was fctxt overwriting ipa field in skb->cb.
In struct qdf_nbuf_cb, offset of skb->cb->u.tx.dev.win.fctx happened to be
same as offset of skb->cb->u.tx.dev.mcl.ipa causing fctxt to sit on top of
ipa field and hence dev_kfree_skb () is not invoked.
Issue fix defines a different function that is invoked when ipa is not in use.
Change-Id: I47cb2a992730a2200b4315e492daa164d1bdfbda
CRs-Fixed: 1068852
Acked-by: Om Prakash Tripathi <otripath@codeaurora.org>
Fix compilation issues faced on the WIN big endian
platform due to QDF convergence related changes.
Change-Id: I33b2a4bbe063acb4585b86e12fa79f96dc12ac73
CRs-Fixed: 1039318
qcacld-2.0 to qcacmn 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: 1072675
Comment in the api specifies that qdf_mem_cmp api
return bool value which is not correct.
Replace bool to int to reflect the correct return
type of a qdf_mem_cmp api.
Change-Id: Iff83fbf588a072dcda8b0aaef3c6743e572b1ac5
CRs-Fixed: 1066946
In current codeflow, we are maintaining the length of the TSO segments
belonging to one jumbo packet inside tso_info, which is common for
all the segments of one jumbo packet. This works if the length of
the segments (frag[1]) is the same. In case it is not, it ends up
assigning incorrect length to all the segments. This is resulting
GMS login failure.
Fix issue by maintaining the total length of the segment in the
qdf_tso_seg_t structure.
Re-factor code for easy readability
Add TSO_DEBUG prints which can be enabled (compile time) to debug
TSO issues
Change-Id: Ifb5a0f1493224c66c3acc394e47a74b2dd84bbc9
CRs-Fixed: 1062556
Decrement qdf_mem_list.count when removing elements to avoid
assert when destroying the list.
Change-Id: I0d0989f3a9009184b898b8b27517e6d12fa3dc97
CRs-Fixed: 1063093
Currently ani_global.h is included in qca-cmn,
This change removes ani_global.h and there are
corresponding changes in Driver
Change-Id: I4c1cf70e8eb1f4391a25783a560c02a43c483054
CRs-Fixed: 1012452
This change adds the following QDF APIs -
qdf_nbuf_get_queue_mapping: To get the queue mapping set by linux kernel
qdf_get_totalramsize: To get total ram size in Kb
Change-Id: I86daffebba759c086d15951dfcc72ea626c74bb4
CRs-Fixed: 1055387
Currently, __qdf_assert is doing kernel panic, deviating the purpose of
assert - "Asserts are NOT used for stopping a program in case of an
error".
To address this, modify __qdf_assert to invoke QDF_BUG which in turn
warns or crashes based on the macro PANIC_ON_BUG.
Change-Id: Ie62484f8f369d8aafa3b1970feafe556b2c94ffa
CRs-Fixed: 1015603
Propagation from qcacld-2.0 to qcacmn.
Add API to update skb->mark whenever first packet after WOW wakeup
is received through HTT layer.
Change-Id: I877dd7af9a58ebc02d73461cc2a29e86a3945dec
CRs-Fixed: 989984
Propagation from qcacld-2.0 to qcacmn.
Add API to find IPV6 mcast packet to use it in wma_wow_wake_up_stats
func. This is required to know if there is a IPV6 mcast packet embedded
in a link layer unicast packet.
Change-Id: Ic2af69032262237b8751019817ae181913346818
CRs-Fixed: 1049254
Propagation from qcacld-2.0 to qcacmn.
Add API to find IPV4 mcast packet to use it in wma_wow_wake_up_stats
func. This is required to know if there is a IPV4 mcast packet embedded
in a link layer unicast packet.
Change-Id: Iceaf1226edbf909ca3881e049c33f7d121860ef2
CRs-fixed: 1049254
Propagation from qcacld-2.0 to qcacmn.
Dump some more info for WOW wakeup packet:
1) ether_type
2) proto_type in case of IPV4 and IPV6 packets
3) src port and dst port in case of TCP/UDP
Change-Id: I1578aa5322af50f0ae43248c48a2f754ea081970
CRs-Fixed: 1043939
Propagation from qcacld-2.0 to qcacmn.
Add APIs to get DHCP, EAPOL, ARP, ICMP, ICMPV6, TCP
and UDP packets type and subtype from the netbuf.
Change-Id: I8837ad1b976744eeb0e7f0a836eded3a5d34124b
CRs-Fixed: 1019037
Classify tx packets at one place and store packet type in
skb cb structure to avoid multiple check to determine
packet type at various layers.
Change-Id: If39fb1c9741bb213c7f22e0dfe7f662a256e637c
CRs-Fixed: 1022454
Need to register the device as a wakeup source and configure
the corect interrupt as a wakeup source for the snoc bus.
Change-Id: I2afcd69a8308183e141d7560a225a3b48d0e9f55
CRs-Fixed: 1051968