wlan: calibration: update to detect r8 driver

wl18xx hardware (r8 driver) does not need calibration.
Attempting to calibrate will result in failure and deletion of nvs file

Change-Id: I6afaff0a26fb54e29c1eb2e3859a6d67d3b1fca9
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - wl18xx: Update to R8.a4.02 from R8.a2.09 package

Upgrading driver and compat package to R8.a4.02 from R8.a2.09 package

Change-Id: Ic6636b3572971fd5ca8fcf871845df040af6e1db
Signed-off-by: Pradeep Gurumath <pradeepgurumath@ti.com>
WLAN - wl12xx: Update to R5.SP3.01 from R5.SP2.04 package

wl12xx: increase scan dwell times if no activity
wl12xx: prevent channel switch in the MR FW
nl80211: sync nl80211.h with latest wpa_s copy
wl12xx: remove unnecessary WARN_ON in wl12xx_tx_reset
wl12xx: new module param to set the dominant role
mac80211: if "dominant ap ch"!="sta ch" block the auth
mac80211: request AP/GO channel switch if needed
wl12xx: add channel switch request debugfs entry
wl12xx: add channel switch ability for AP & GO
mac80211: add ap channel switch command/event
nl80211/cfg80211: add ap channel switch command
cfg80211: add channel switch notify event
mac80211: add channel switch request
nl80211/cfg80211: add channel switch request command
mac80211: fix sync of rx filters with driver and cfg80211
nl80211: don't save wowlan triggers if rx_set_filters fails
wl12xx: clear RX filters when adding AP/GO interface
wl12xx: fwlog changes and dynamic mem_block
wl12xx: add sysfs control over disable SGI
wl12xx: add module param to enable/disable core_dump
wl12xx: core_dump implementation
wl12xx: remove some trailing spaces
wl12xx: elp_wakeup when issuing recovery from userspace
wl12xx: disable WARN_ON in case of FW watchdog recovery
mac80211: always set in_reconfig=false on wakeup
mac80211: stop Rx during HW reconfig
mac80211: add stations after AP start on reconfig
Revert "wl12xx: fix BA session after AP recovery"
wl12xx: Always pass DMA-able buffers to mmc functions
wl12xx: don't ROC or switch to MR on p2p mgmt on-chan Tx
wl12xx: enable the dev role on the p2p mgmt iface
mac80211: mark the p2p0 interface with a special flag
wl12xx: disable arp filter only if configured
wl12xx: don't send the sleep_auth to FW on recovery
wl12xx: Fix continuous and on-demand fwlog modes
wl12xx: Fix unbalanced interrupts enablement
wl12xx: Don't recover during boot
wlcore: make debug prints work without dynamic debug
wlcore: op_tx: pass sta explicitly when inferring frame hlid
wlcore: don't get the hlid from a queued skb

Change-Id: Ic2e9222690c4bf2d4a23ee0365b242654ecabe02
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
WLAN - add autogenerated file to gitignore

version.h is autogenerated during build.
Adding it to .gitignore file.

Change-Id: I3b010069a3ab3245bf3d4c98dc2ce1b86c7b6cef
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - wlconf: add wlconf code

Initial wlconf contribution (based on r8.a4 release)
wlconf is used for generating wl18xx-conf.bin file for wl18xx.

For more details please refer to mac80211/ti-utils/wlconf/README

Change-Id: Ia0201adef071386d3e3a8cf7b475ded2d0701956
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
wl12xx: fix generic cfg fw command

The command struct was missing the header struct.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
wl12xx: change packet retry count

default retry number was 10. we found out that in noisy environment
there were case we were failed to send the packet.
in that case it took time until the upper layer retransmit the
packet which cause degradation in TCP TP.
change the default to 50 in order to solve this problem

Signed-off-by: Yossi Wortzel <yossiw@ti.com>
wl12xx: take the mutex before resetting Tx queues

Otherwise we risk contention for private members of our global structure
while op_stop_locked is running.

Reported-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
wl12xx: consolidate free_link and always call it

Make sure free_link is always called when removing an interface. This
ensures all skbs belonging to this interface are returned to mac80211.
Otherwise these dangling skbs might crash the system on the next
call to wl1271_tx_reset_link_queues(). This happens on recovery/stop or
an unsuccessful Tx flush.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
wl12xx: restore default channel configuration

wl12xx allocates two static structs wl1271_band_2ghz &
wl1271_band_5ghz which are used/modified by Reg-Domain
e.g. some channel might be marked as passive at some
point. These structs freed only during wl12xx rmmod and
aren't cleared during wl12xx_sdio.ko, this means that
some channel flags might be set regardless reg-domain
rules. Fix this by clearing the channel flags from
the previous usage (before the current wl12xx_sdio.ko
insmod).

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
wl12xx: initialize per-link FW freed blocks correctly

When a link is allocated, sometimes the "freed packets" counter in FW
is non zero, but we always assumed it is. This caused us to incorrectly
account FW allocated blocks in some cases.

When operating in AP mode, this bug caused some stations to never
come back from PSM.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
mac80211: increase channel switch request timeout

In some heavy loaded MR scenarios with enabled debug
prints the channel switch request + channel switch
command can take some time. Increase the channel
switch request timeout to: beacon_int * dtim_period * 10.

Also clear the "ap_cs_channel" in case of completion
timeout/error.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
wl12xx: block sched scan if p2p client is running

sched scan isn't supported by the FW when there's a p2p
role active so block it if any interface is running
p2p client.

Signed-off-by: Eyal Shapira <eyal@wizery.com>