net: wireless: bcmdhd Reduce connection time

1) using channel cache in DHD Driver
2) use channel cache in case of that freq == 0
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fix RTT issue

16520514 Blocking issues to RTT usage
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd tune the max assoc cnt for GO and SOFTAP

16728913 More then max allowed devices are connecting to MHS
16677404 More then allowed max P2P client devices are connecting to DUT
Signed-off-by: Ecco park <eccopark@broadcom.com>

Change-Id: Ide18f7fe67d06a4ba779bcd1514bcbb0df8e54d9
net : wireless: bcmdhd remove skb_orphan due to side effect

1) [CERT] WiFi :11ac test case 5.2.32.1 and 5.2.33.1 failures
2) The code causes the regression of throughput

Bug: 16716038
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd disable async suspend mode

Bug: 16612712
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fixed p2p_find

Issue 16534736
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fix P2P connection issue

1) ROAM_CHAN_CACHE has a bug for P2P connection
2) Unable to establish p2p connection between two devices

Bug: 16780586
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fix RTT capability

bug : 16854821 isDeviceToApRttSupported returns false
Signed-off-by: Ecco park <eccopark@broadcom.com>

Change-Id: I7236be57102d575678a224791fb378c0f081b5bb
net: wireless: bcmdhd fixed RTT bugs

1) 16951581 Trying to run RTT with 16 configs reboots the phone
2) 16874783 rtt_sd values returned in rtt status don't seem correct
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fixed pcie suspend issue

Root cause : There are some delay code in dhd_bus_dpc to cause not
   to handle D3_ACK during suspend mode.
Solution : remove the delay code in dhd_bus_dpc
   change the current logic to interrupt to WLAN by not using message
   box interrupt.
Bug: 16934751 Terrible battery life
Bug: 16392971 [WiFi] WiFi Data Stall
Signed-off-by: Ecco park <eccopark@broadcom.com>

Change-Id: Ia6c665ccae68fcac6261e191197faf1a620da2a4
net: wireless: replace unsafe instances of bcopy

	pat='s/bcopy(\&int_val, arg, val_size);/bcopy(\&int_val, arg, sizeof(int_val));/g'
	for f in $(git grep -l "bcopy(&int_val, arg, val_size);"); do
		sed -i -e $pat -f;
	done

Change-Id: I2a798497937b365247a733ef5ab3bf1ee93b6108
Signed-off-by: Iliyan Malchev <malchev@google.com>
net: wireless: bcmdhd: PNO MAC address rotation

This change will need updated FW to work

Change-Id: Iaa94ee1969ddab1a3c3d61a3e1bbdebaea2022af
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
net: wireless: bcmdhd: additional RTT and scan fixes

1. Added support for asynchronous batch scan results get
2. Fixed chanspec to channel conversion in full scan result

b/16510235 wifi_get_cached_scan_results doesn't return any results after a
	   single scan
b/16803503 More RTT driver/HAL issues
Change-Id: Id179d7eca2eaf45113bcc42224b151861be51180
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
net: wireless: bcmdhd Cancel ongoing scan before make connection

b/17004506 Fail to connect if scan is in progress
Change-Id: I134939ccb4686e5ad648c21db15c8ef07286eb6b
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd fixed regression of SOFTAP throughput

Increase TXGLOM_SIZE and sg_list entries exceed limit issue fix.

b/17007818 Throughput regression of SOFTAP
Change-Id: I4273a6ab08963ec6808539e772627e1eb990f06c
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Ecco park <eccopark@broadcom.com>
net: wireless: bcmdhd: change the policy of TCPACKSUPPRESS

Current policy(TCPACK_SUP_DELAYTX) is not verified fully.
So, we need to use TCPACK_SUP_REPLACE

16952284 dhd_tcpdata_info_get 930: No more free tdata_psh_info!!

Change-Id: Id721a409ca9411899fda9f89bdec6e9de6d7beda
Signed-off-by: Ecco park <eccopark@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd Added link statistics support

Change-Id: I9eb52c7f377bdcbc72d108be5daec6f47410701d
Signed-off-by: Chilam Ng <chilam@broadcom.com>
net: wireless: bcmdhd: Check evt data length before processing

WLC_E_PFN_BSSID_NET_LOST is conflict shared with WLC_E_PFN_SCAN_ALLGONE
WLC_E_PFN_SCAN_ALLGONE sends no data, this needs to be checked when processing
WLC_E_PFN_BSSID_NET_LOST

Change-Id: I98db269f76da90fbc2f5d0b85cab36d4a2fd3b35
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
net: wireless: bcmdhd: Fix pkt filter for 64-bit host

Pkt filters were not being correctly set in 64 bit architecture
because a pointer was defined in union being passed to FW
(pointer is not used by HOST) resulting in different offset to
the next field of struct in HOST and FW.

Bug: 17006509

Change-Id: I2b2b0dec625b1e62329ff475067d010e05d25201
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: bcmdhd: wireless: Fix batch scan timing out

Removed wait and sleep code from batch scan get result
function (when scan was ongoing in the FW) which
resulted in HAL timing out.

Bug: 17048507

Change-Id: I0ce23d329796a348e1d5dc2172eab028d8ea47de
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>