WLAN - mac80211: Upgrade driver to version R4_SP2

Upgrading driver to wl12xx driver version NLCP R4_SP2

Accumulative patch update containing following patches

    mac80211: report stopped sched scan only after driver does
    wl12xx: mark no sched scan only after FW event
    cfg80211: more correct support of multi-essid bss-es
    wl12xx: consider QoS in auto arp (squash)
    wl12xx: fix sched scan of DFS channels
    cfg80211: merge in beacon ies of hidden bss.
    wl12xx: support complex rx filters patterns
    wl12xx: prep work to support more complex rx filter patterns
    mac80211: don't check sdata_running in vif notifier
    mac80211: configure BSS_CHANGED_ARP_FILTER on reconfiguration
    wl12xx: Configure arp filtering only after association
    mac80211/wl12xx: support scanning while idle
    mac80211: handle PRE_ASSOC flag
    nl80211: add PRE_ASSOC flag
    mac80211: fix race condition between assoc_done and first EAP packet
    mac80211: refactor sta_info_insert_rcu to 3 main stages
    Revert "mac80211: refactor sta_info_insert_rcu to 3 main stages"
    Revert "mac80211: fix race condition between assoc_done and first EAP packet"
    Revert "mac80211: fixed a null pointer dereference bug"
    wl12xx: allow more complex rx filter patterns
    wl12xx: Revert "wl12xx: disable auto-arp"
    wl12xx: consider encryption when configuring auto arp template
    wl12xx: avoid stop sched scan when not idle
    wl12xx: fix AP failure after recovery
    wl12xx: Add clocks overriding module parameters
    wl12xx: minor fix in sched_scan_ssid_list
    mac80211: add recalc PS in ieee80211_reconfig()
    wl12xx: fix wl12xx_scan_sched_scan_ssid_list() check that all given ssids are in filters
    wl12xx: fix oops in sched_scan when forcing a passive scan
    wl12xx: Clear WoWLAN filters on resume
    mac80211: fix ie memory allocation for scheduled scans
    mac80211: treat the WME sta flag as a bit
    wl12xx: check for dev_hlid instead of dev_role_id
    Set IEEE80211_TX_RC_SHORT_GI if short GI was used on
    Set IEEE80211_TX_RC_MCS on MCS rates on TX complete.
    wl12xx: Add support for WoWLAN packet pattern trigger
    wl12xx: Add functions for managing rx data filters
    wl12xx: Add rx data filter commands
    wl12xx: control suspend_listen_interval through debugfs
    wl12xx: Set different wake up conditions in case of suspend
    wl12xx: set max_sched_scan_ie_len correctly
    wl12xx: fix forced passive scans
    wl12xx: ignore sched scan match sets without SSID
    wl12xx: increase number of allowed SSIDs in sched_scan
    wl12xx: add support for sched_scan filters
    wl12xx: remove deprecated CONFIG_WL12XX_HT flag
    nl80211/cfg80211: add match filtering for sched_scan
    wl12xx: use SCAN_SSID_TYPE_PUBLIC when using the wildcard in sched_scan
    wl12xx: add support for multiple SSIDs in sched_scan
    wl12xx: add max_sched_scan_ssids value to the hw description
    nl80211/cfg80211: add max_sched_scan_ie_len in the hw description
    nl80211/cfg80211: add max_sched_scan_ssids in the hw description
    cfg80211: return -ENOENT when stopping sched_scan while not running
    wl12xx: split channel array per band in sched_scan
    wl12xx: fix DFS channels handling in scheduled scan
    nl80211/cfg80211: add new scan configurations attributes
    mac80211: add new capabilities
    nl80211/cfg80211: add new capabilities
    nl80211/cfg80211: add intermediate scan result filter
    mac80211: add intermediate scan result event call
    nl80211/cfg80211: add intermediate scan result event
    mac80211: add 'scan_cancel' command
    nl80211/cfg80211: add 'scan_cancel' command

Change-Id: I26976ce21ae03d0425a31f964dbc327e0a7aacc6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - calibrator upgrade to R4_SP2

Calibrator upgrade to latest version

Change-Id: I50e7b84d8adb5947f58e58caf0259e5e873447c2
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - calibrator: Add support for random mac in autocalibrate

Add random mac support to autocalibrate command.

Change-Id: Ic89ba9ecd8c622b260a130ee0fcebd95ab6a2848
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - Adjust WLAN calibration script to new calibrator

Calibrator was updated and the procedure needs to be updated accordingly.

Change-Id: I268eb6c984cf5873b2f3fbaebaa6301ea0bf76c4
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211: Add support for DRIVER RXFILTER command

Add support for RXFILTER command using WoWLAN packet pattern triggers

Change-Id: I1209a1dcf4932b252c2daee7494d6df1ae78eaf8
Signed-off-by: Pontus Fuchs <pontus.fuchs@tactel.se>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211: RX filters: add support for longer patterns

- Add support for long patterns (longer than 8 bytes)
- Separate Rx filters static configuration from code
- Add DHCP and ARP Rx filters

Change-Id: Iafaee231c66cfed8526a0e27a6a4fc1f21fefdf4
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Assaf Azulay <assaf@ti.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211: RX filters: Remove ARP wowlan wakeup pattern

As FW now includes Auto ARP response there's no
need to wakeup on ARPs

Change-Id: I4fb417aef5b9a1cb9d3fbe6340fcdea6861ed347
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
WLAN - mac80211: RX filters: allways set RXFILTER for unicast and multicast

In pre ICS framework code, filter 0 and 1 are always set but in ICS they are not.
Make sure to always set them otherwise unicast and bcast are dropped.

Change-Id: I0f4d3c63f0b4789de001d1bfbf536b824e4221e3
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
mac80211: consider only unicast keys for auto-arp (squash)

Only the unicast key type should be considered for auto-arp
configuration. Considering the bcast key might cause problem
when working with mixed mode.

Change-Id: I97e4e41c832b1c02552c866f68c2134e01217a4c
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
mac80211: set upasd_queues and max_sp only on sta addition

(this patch is not needed for newer kernel versions)
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>

Change-Id: Ifbec8347af60ed98519b5fbb1fcdad189349a06d
Revert "cfg80211: more correct support of multi-essid bss-es"

This reverts one of the patches from commit c4042196b3177cce50895e9bff62da05712f7251

Change-Id: Ic6ffeded1f5d1e2ebff0b9823af5c9a689ae4df7
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
WLAN - mac80211: Add R5 compat package

Adding compat package for wl12xx based on R5_00_05 release

compat-wireless code metrics

    826308 - Total upstream lines of code being pulled
      2299 - backport code changes
      1964 - backport code additions
       335 - backport code deletions
      8885 - backport from compat module
     11184 - total backport code
    1.3535 - % of code consists of backport work

Base tree: wl12xx.git
Base tree version: v3.1-rc6-14178-gfb320e3
compat-wireless release:

Change-Id: I67623d1df6a4224f3a8464adac244366c5545176
WLAN - mac8021: Update to R5_00_08 from R5_00_05 package

Upgrading driver to R5_00_08 from R5_00_05 package
Accumulative patch update containing following patches:

wl12xx: support two mac addresses based on the NVS mac addr
wl12xx: second MAC address is the first plus one
mac80211: update oper_channel on ibss join
wl12xx: don't start dev role on ibss vifs
wl12xx: consider bss_conf->idle instead of hw->conf.flags
mac80211: set bss_conf.idle when vif is connected
wl12xx: Acquire lock before stopping plt
wl12xx: Power off after flushing work
wl12xx: Fix potential interrupt storm
wl12xx: cancel delayed elp work and clear flags when stopping PLT
wl12xx: consider common encryption type (WEP) for auto-arp
wl12xx: flush tx on CHANGE_CHANNEL
wl12xx: increase WL1271_EVENT_TIMEOUT
wl12xx: set correct vif type in change_interface callback
mac80211: fix tx->skb NULL pointer dereference
wl12xx: don't allow scanning while device is in ROC
mac80211: fix work removal on deauth request
nl80211: support short and long interval in sched scan
wl12xx: support short and long interval in sched scan
wl12xx: Make sure HW is available in sched scan ops
wl12xx: change bits in the link_map under spin lock
wl12xx: reset link Tx queues when freeing it
wl12xx: avoid starving the system hlid
wl12xx: flush all Tx queues on tx_flush timeout
wl12xx: flush Tx during suspend and 802.11h chan switch
nl/mac80211: add roaming capability event to API
wl12xx: report roaming disabled when switching to multirole
mac80211: don't stop beaconing when going offchannel
wl12xx: use the original elp timed in forced_ps mode (squash)
wl12xx: fix the CONF_TX_AC_ANY_TID to be 0xff
wl12xx: avoid bug_on_recovery during fw switch
wl12xx: move partition table definition to io.c
wl12xx: read chip ID and HW PG version during probe
wl12xx: use MAC address from the fuse if not available in the NVS
wl12xx: add testmode operation to read the BD_ADDR from Fuse ROM
wl12xx: update firmware names according to new naming convention
wl12xx: configure the correct beacon_interval
wl12xx: wait for ROLE_STOP_COMPLETED event
mac80211: add op to configure default key id to driver
wl12xx: set default_wep_key when configured
wl12xx: fix sparse warning in scan.c (squash)
wl12xx: adaptive sched scan dwell times
wl12xx: increase scan timeout to 30s

Change-Id: Ic19a77e43b118860d05caefe5ca79971509d9ac4
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
Revert "WLAN - calibrator: Add support for random mac in autocalibrate"

This reverts commit faad69ad06e2c45d84e5b6d6bd8d50ba4de1b28d.
WLAN - mac8021: ti-utils: Update to R5_00_08 from R5_00_05 package

Upgrading ti-utils to R5_00_08 from R5_00_05 package
Accumulative patch update containing following patches:

Remove dual_mode from struct wl12xx_common
calibrator: Fix mem leaks in rmmod
add support to read MAC address from the FUSE
plt: add support to read the MAC from fuse and write to NVS
calibrator: add a warning if the second MAC address overflows
plt: add an option to assign the default MAC address to the NVS
calibrator: don't generate random MAC addresses
calibrator: move power on and off out of the plt_do_calibrate function
calibrator: add new MAC address options to autocalibrate

Change-Id: I95e49c29df314c6576fceeaba10a5e7b3577c157
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
Fix the build issue caused by wl12xx: add version and timestamp strings (DEB

This is part of R5_00_08 package.

Change-Id: Ief9407337be8f14093fdb771a5683b35a98c60bb
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
Fix the build issue caused by version.c of compat driver.

Change-Id: I92f269558d9816ee75e5b0a1da7affb890b6e14d
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
mac80211: timeout a single frame in the rx reorder buffer

The current code checks for stored_mpdu_num > 1, causing
the reorder_timer to be triggered indefinitely, but the
frame is never timed-out (until the next packet is received)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Cc: <stable@vger.kernel.org>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

Change-Id: I24be85278b4635ede4f4d591fab8ac16ef4dce98
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
wl12xx: add version and timestamp strings (DEBUG)

This is part of R5_00_08 package.

In order to allow better version control, add version
and timestamp strings into the wl12xx module.

These strings will be printed on driver load, and when
reading the driver_state.

(this is not going to work well in compat, because it
copies all the files instead of compiling them in the
original tree, so the version of the compat tree will
appear as the driver version. we can workaround it
with the additional makefile hacks...)

Change-Id: I289e0c543dd9611114cd2cae1cf777cc3bdb6310
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Panduranga Mallireddy <x0125717@ti.com>
Merge "Fix the build issue caused by wl12xx: add version and timestamp strings (DEB" into p-ics-mr1