wcnss: add null check in pm_ops unregister

Add null check for pm_ops in pm_ops unregister to avoid
null pointer dereference.

Change-Id: I885618a3244b91ba5eddcadb81ae08e965db63b3
CRs-Fixed: 690191
Signed-off-by: Mahesh A Saptasagar <msapta@codeaurora.org>
wcnss: Change WCNSS_VBATT_GUARD value from 200uV to 20mV

To avoid ADC_TM interrupts at 3.5V battery threshold
Change WCNSS_VBATT_GUARD value from 200uV to 20mV.

Change-Id: I2d7a637ff4c3eb820c43fcb73d1720e94edf3c4c
CRs-Fixed: 705609
Signed-off-by: Anand N Sunkad <asunka@codeaurora.org>
wcnss: add a2xb bus stall detection logic

Detect A2XB bus stall by profiling Read, Write and Cmd
fifo registers.

Change-Id: I33b45e79c52677ef998011511a6fc3fb76eecc24
Crs-Fixed: 705962
Signed-off-by: Siddharth Bhal <sbhal@codeaurora.org>
wcnss: Send FIQ to firmware after smp2p error ready happens

In order to get firmware dump, send FIQ when it times out on smp2p
error ready during cold boot.

Change-Id: I5edfed83dc12b00865066f2c8028d34b9857e116
CRs-Fixed: 608693
Signed-off-by: Yue Ma <yuem@codeaurora.org>
wcnss: Unregister subsys notifier

Unregister subsys notifier for WCNSS on reaching
maximum number of retries.

Change-Id: I665398ec46b1bb3252dbbff58201c947f262bff3
CRs-Fixed: 655314
Signed-off-by: Pradeep Kumar Goudagunta <gpradeep@codeaurora.org>
wcnss: LDO change for WCNSS

Send LDO notification through SMD channel to FW which use
to update the pmic pam map.

Change-Id: I7a893570489e65d92df65728d09fd20e61d6b0fc
CRs-Fixed: 660361
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
wcnss: Fix AXIM select and CTRL select bit fields

When a WDI timeout happens, WLAN driver will initiate SSR. Dumping
these registers before performing the reset helps to debug the root
cause of the timeout. Fix AXIM select and CTRL select bit fields
of testbus register while doing the A2XB testbus register dump.

Change-Id: Ic9c7ddf2e4cee07b43cc8fe06afca04755856eeb
CRs-Fixed: 540586
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
wcnss: handle CBC complete event from firmware

Add case to handle cold boot calibration complete
event from firmware.

Change-Id: I3d3dce178fadd7f993ee31667c89bcebb02c388b
CRs-Fixed: 734932
Signed-off-by: Anand N Sunkad <asunka@codeaurora.org>
wcnss: add condition to check for pronto ver3 hardware

Add support to check for pronto ver3 hardware is present
by reading a device tree entry

Change-Id: I01cd71ac6c00b6c1e4c5ea46b3f3c0b57a0dbd95
CRs-Fixed: 737209
Signed-off-by: Siddharth Bhal <sbhal@codeaurora.org>
wlan: Add debug print NV download failure

Added a debug  print for the return type in case
of NV downlaod failed.
CRs-Fixed: 717777
Change-Id: I3287089cad83d37641c71da9829ef4e89d7aeca0
Signed-off-by: Kaushik, Sushant <skaushik@codeaurora.org>
wcnss: add pm_qos support to prevent power collapse for BIMC

Add pm_qos support to prevent power collapse of BIMC during
SSR and coldboot. Wakelock is also taken to prevent power
collapse of BIMC

CRs-Fixed: 727070
Change-Id: Ida638e85995735b629ad455dd48df996b37c2305
Signed-off-by: Siddharth Bhal <sbhal@codeaurora.org>
wcnss: dump apb2phy_status register on subsystem restart

apb2phy_status register is required for debugging certain
issues due to watchdog bite on the wcn chip. Dump the
register when watchdog bite occurs on the wcn subsystem
or the subsystem is going for a restart for any other
reason.

Change-Id: I90851d023dff5c62d66a9855fff9b16d244f5190
CRs-Fixed: 631088
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
wcnss: Reset IRIS card before Starting IRIS XO configuration

Set iris_reset bit of PMU CFG register to reset the IRIS
card before Starting IRIS XO configuration.

Change-Id: Id1cfd7e3e3df29919089725b2233c6f95afbbfb5
CRs-Fixed: 664642
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
radio: iris: Fix the issue with hard mute IOCTL

- Hard mute IOCTL is setting the soft mute as well irrespective
  whether it is required or not.
- Setting only hard mute.

Change-Id: Ifb2c91f4bb1f1c3418c65c57fccd65c7656170c0
CRs-Fixed: 656715
Signed-off-by: Venkateshwarlu Domakonda <vdomak@codeaurora.org>
net: core: Support UID-based routing.

This contains the following commits:

1. 0149763 net: core: Add a UID range to fib rules.
2. 1650474 net: core: Use the socket UID in routing lookups.
3. 0b16771 net: ipv4: Add the UID to the route cache.
4. ee058f1 net: core: Add a RTA_UID attribute to routes.
    This is so that userspace can do per-UID route lookups.

Bug: 15413527
Change-Id: I1285474c6734614d3bda6f61d88dfe89a4af7892
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Git-commit: 0b428749ce5969bc06c73855e360141b4e7126e8
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Ian Maund <imaund@codeaurora.org>
Handle 'sk' being NULL in UID-based routing.

Bug: 15413527
Change-Id: If33bebb7b52c0ebfa8dac2452607bce0c2b0faa0
Signed-off-by: Sreeram Ramachandran <sreeram@google.com>
Git-commit: 0836a0c191f580ed69254e0b287cdce58481e978
Git-repo: https://android.googlesource.com/kernel/common.git
Signed-off-by: Ian Maund <imaund@codeaurora.org>
nl80211: Correct the usage of command NL80211_CMD_VENDOR

Assign/pass the cur_cmd_info parameter correctly. This fixes a
merge error when open source commit
ad7e718c9b4f717823fd920a0103f7b0fb06183f was pulled into the tree.

CRs-Fixed: 672390
Change-Id: Iaa21a1723709683a6f34b07423b74ef0b6077b68
Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
Enable NEED_NETDEV for vendor command support.

The Vendor command needs to have the NEED_NETDEV internal flag set
for the corresponding vendor_cmd function to initialize correctly
and call the vendor subcommand specific doit function.

Change-Id: Icc46438dc9467fe0344cb832633c49466e2d20d0
CRs-fixed: 633799
Signed-off-by: Subhani Shaik <subhanis@codeaurora.org>