wl12xx: Initial contribution for mac80211 based wl12xx solution

Initial contribution (suplicant lib and conf files)

Change-Id: I019a88d27abdb8ad79c4b755a079158c32fe009b
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)  DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Id8cc97cc99caad8817f37ea158a6dc637e6023a9
Replace wireless_copy.h with linux_wext.h

Fixes full_panda builds

Change-Id: I0bfeaa0827eb0413daa860d31dafc6a961667b83
wpa_supplicant_lib: Move .config for Android to android.config

Change-Id: I41162bc92e197a1b5ad3f828f2d481bd034a265a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
merge in jb-release history after reset to master
merge in jb-release history after reset to master
Remove non-existent libnl to fix build.

Change-Id: Ieecbfb0d52a24c79b96600efb5f778fd32aaa202
merge in jb-release history after reset to master
Update make file for new location of libnl

Change-Id: If93aea9913cfa263fb228feb27137ac16b78cf0a
Signed-off-by: Mike Lockwood <lockwood@google.com>
merge in jb-release history after reset to jb-dev
wlan: Build wpa_supplicant library only if needed

New wpa_supplicant version that will be used for JB does not need seperate library
for driver commands.

Build this library only when it is defined in BoardConfig.mk file.

Change-Id: Ibd7ef62d884c52b3c12220fea2edf5c6a1908d0f
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211:Upgrade driver to version R5.SP2.04

wlcore: Prevent interaction with HW after recovery is queued
wl12xx: Use a dedicated fw for PLT
wl12xx: set default FW log mode to dbg-pins
wl12xx: take the mutex during delayed recovery
wl12xx: tx_flush - optimize flow and force Tx during the flush
wl12xx: lazy-enable device roles
wl12xx: always use wlvif->role_id for scans
wl12xx: disable roaming only when booting the MR FW
wl12xx: don't try to free a NULL probe-resp
wl12xx: allow setting 3 mac addresses
mac80211: avoid using synchronize_rcu in ieee80211_set_probe_resp
mac80211: avoid using synchronize_rcu in ieee80211_config_beacon
wlcore: don't stop tx queue via watermark if already stopped
wlcore: stop queues on Tx flush
wlcore: add stop reason bitmap for waking/starting queues
wl12xx: make Tx flush timings more verbose
wl12xx: allow only the lowest OFDM rate for p2p setup frames
wl12xx: AP mode - send non-data packets with basic rates
mac80211: skip the ps count of idle STAs
wl12xx: change verbose debug print
cfg80211/nl80211/wl12xx: align to new nl80211.h ABI
mac80211: fix invalid band deref building preq IEs
wlcore: define number of supported bands internally
wlcore: use basic rates for non-data packets
wlcore: send EAPOLs using minimum basic rate for all roles
mac80211: check sdata_running on ieee80211_set_bitrate_mask
wl12xx: increase WL12XX_MAX_ROLES
wl12xx: change recovery on start/stop device role
wl12xx: add grace period when changing MR -> SR fw
wl12xx: delay fw switch to start/stop_role_sta/ap
mac80211: count started vifs
wl12xx: increase command completion timeout
wl12xx: implement SW Tx watchdog
wl12xx: add an extra block for all data packets in GEM
wlcore: don't issue SLEEP_AUTH command during recovery
wl12xx: change return code in case of WD recovery (squash)
wl12xx: add elp_timeout config option
wl12xx: increase number of rx filters to 7
wl12xx: support wowlan pattern actions
nl80211: add an action to wowlan patterns
wlcore: avoid debug prints during intended FW recovery
wlcore: android: don't suspend on pending recovery (INTERNAL)
mac80211: fix list_aliases handling (INTERNAL)
wlcore: don't set SDIO_FAILED flag when driver state is off
mac80211: don't require associated->beacon_ies for ps
wlcore: Prevent processing of work items during op_stop
wl12xx: always clear recovery flag during recovery_work
wlcore: compare ssid_len before comparing ssids
wl12xx: init the pll reg before reading the fuse reg
wl12xx: always set default wep key idx
wlcore: add probe request templates for sched and one-shot scans
Revert "mac80211: use legacy mode for all ACs"
wlcore: release lock on error in wl1271_op_suspend()
mac80211: use legacy mode for all ACs
wl12xx: print stack trace in every recovery
wl12xx: queue recovery in case of bus errors during cmd_remove_peer
wl12xx: fix broken TX due to wrong queuing of recovery
wl12xx: reconfigure sleep_auth when removing interfaces
wl12xx: prevent recovery in the middle of resume
wl12xx: refactor threaded IRQ routine
wl12xx: check Rx-filter functions in the suspend path
wl12xx: force recovery on resume if suspended without recovering
wl12xx: don't allow SDIO read/writes after failure
wl12xx: cancel suspend when recovery is pending
mac80211: fix cleanup if driver suspend callback fails
mac80211: handle auth failure returned with unmatching auth algo
wl12xx: Force checking of io functions' return values
wl12xx: Propagate errors from wl1271_read_hwaddr
wl12xx: Propagate errors from wl1271_write
wl12xx: Propagate errors from wl1271_read
wl12xx: Propagate errors from wl1271_raw_write32
wl12xx: Propagate errors from wl1271_raw_read32
wl12xx: Check return value when reading the FW status
wl12xx: Change read/write ops to return errors
wl12xx: Disable interrupts while recovering
mac80211: Clear wowlan flag when drv_suspend returns failure
wlcore: send EAPOLs with basic rate policy
mac80211: fix non RCU-safe sta_list manipulation
wl12xx: add a directory specific .gitignore
mac80211: fix ADDBA declined after suspend with wowlan

Change-Id: I8151e4a3ddbefd7fafd1d626e04245e5d23b0d51
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
compat: move br_port_exists() to compat-2.6.36.h

br_port_exists() was moved to a new compat-*.h file for every new
kernel release, as it is not in mainline. This patch moves it to compat-
2.6.36.h so it has not to be moved any more for a new kernel version.

(This time for compat_wl12xx)

Change-Id: I3bb9a24f8bd8a9b5a2e63a1ced2dc60cfcfc189d
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
compat: use kconfig.h in compat-2.6.h for 3.1 and later kernels

This file was introduced in commit 2a11c8ea20bf850b3a2c60db8c2e7497d28aba99
and included in 3.1 and later kernels.  It includes <generated/autoconf.h>
itself, as well as some other definitions that are used elsewhere.

(This time for compat_wl12xx)

Change-Id: Ia030c06b7fb7691c1e9db307485774f40b227531
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
wlan: mac80211: config: add check for new wpa_supplicant tree

Add check for new TI wpa_supplicant tree added to JB

Change-Id: I7525f8a6792b2a9b909d6365d2ef13b502f417a6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
wlan: mac80211: config: fix build dependency on new tree

Add extra check in config/Android.mk for including new TI tree

Change-Id: I3f5e42b7c363dac5339516c4bf54d2b3ccb7566e
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Merge remote-tracking branch 'omap-mirror/p-jb-release' into jb-release

Conflicts:
	mac80211/config/Android.mk
	mac80211/config/hostapd.conf
	mac80211/ti-utils/Makefile
	mac80211/ti-utils/README
	mac80211/ti-utils/calibrator.c
	mac80211/ti-utils/calibrator.h
	mac80211/ti-utils/ini.c
	mac80211/ti-utils/ini.h
	mac80211/ti-utils/misc_cmds.c
	mac80211/ti-utils/nvs.c
	mac80211/ti-utils/nvs.h
	mac80211/ti-utils/plt.c
	mac80211/ti-utils/plt.h
	mac80211/wpa_supplicant_lib/Android.mk
	mac80211/wpa_supplicant_lib/driver_mac80211_nl.c
	mac80211/wpa_supplicant_lib/driver_nl80211.h

Change-Id: Id9b80e1ef5e753d3cc1926e3df357d9bc190e655
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211: Update to R8.a2.09 from R8.a1.06 package

Upgrading driver to R8.a2.09 from R8.a1.06 package
Please note that this change is specific for PG2.0 of the COM8 module
and it renders the driver incompatible with the older PG1.1 versions.

Accumulative patch update containing following patches:
Revert "wl18xx: allow ELP by default for PG2.0"
wl18xx: set default phy config to hp siso
wl18xx: enable wlconf configurations for r8.a2
wlcore: access the firmware memory via debugfs
wl18xx: allow ELP by default for PG2.0
wl18xx: increase rx_ba_win_size to 32
mac80211: use the correct capability info in ieee80211_set_associated()
wlcore: reconfigure sleep_auth when removing interfaces
wlcore: allow setting sleep_auth before interface init
mac80211: don't queue monitor work for HW_CONNECTION_MONITOR
mac80211: check sdata_running on set_bitrate_mask
Revert "wl18xx: allow ELP by default for PG2.0"
wlcore: update basic rates on channel switch
wlcore: add HW flag to add AP stations only after beaconing
mac80211: allow adding stations after AP start on reconfig
mac80211: stop Rx during HW reconfig
mac80211: don't call drv_ampdu_action() during reconfig
mac80211: clear ifmgd->bssid only after building DELBA
mac80211: fix ADDBA declined after suspend with wowlan
wl18xx: allow ELP by default for PG2.0
wl18xx: increase rx descriptors
wlcore/wl12xx/wl18xx: make NVS file optional for wl18xx
wl18xx: clean up phy module parameters
wl18xx: align wl18xx_conf_phy with FW variant and remove it
wl18xx: read configuration structure from a binary file
wlcore/wl18xx: export conf struct in a debugfs file
wlcore/wl18xx: the conf structs must be packed so they can be exported
wl18xx: update fw statistics
mac80211: [NOT_FOR_UPSTREAM] setting only VO as UAPSD
wlcore: use u8 instead of enum for bcn_filt_mode
wlcore/wl18xx/wl12xx: use u8 instead of bool for host_fast_wakeup_support
wl18xx: use a single dimension for tx_agg_vs_rate in fw_stats (SQUASH)
wl18xx: enable fw logger for pg2 chips
wl18xx: update fw statistics
wlcore: add counters with reasons for aggr packet sending (DEBUG)
wlcore: export raw binary with the FW statistics in debugfs
wl18xx: add support to clear FW statistics
wlcore: add debugfs control over rx interrupt pacing
wlcore: add support macros to easily add conf debugfs entries
wlcore/wl12xx/wl18xx: add version.h to a new .gitignore file (INTERNAL)
wl18xx: change FW names for PG1, PG2
wlcore: compare ssid_len before comparing ssids
wlcore: increase number of BA sessions to 3
wlcore/wl12xx/wl18xx: implement op_set_key per HW arch
wlcore: stop queues on Tx flush
wlcore: add stop reason bitmap for waking/starting queues
wlcore/wl12xx/wl18xx: handle spare blocks spacials cases per arch
wlcore/wl12xx/wl18xx: introduce quirk to remove TKIP header space
wlcore: set wl->ht_cap per-band
wl18xx: data packets hlid was not updated during tx
wl18xx: PG2.0 HW Watch dog support
wl18xx: FW/PHY arguments added for pg2
wl18xx: dual fw support for pg1/pg2
wl18xx: PG2 padding
wl18xx: pg2 update
wl18xx: fix PHY_INIT addresses mem size
wlcore: fix sparse warning in wl1271_get_scan_channels (squash)

Change-Id: I0faf387bfc7da9ade124846ad61871215f8b6018
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
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>