wlan: Fix inline building

This fixes inline bulding for devices like ruby
* ifndef'ed mutiple defines
* Fix compiler warning

Change-Id: I3282a93c7a637951792e4270eaabeced7fbd9a7b
WLAN - wl12xx: Update to R5.SP3.06 from R5.SP3.01 package

mac80211: reject BA action frames if sent fron non HT STA
mac80211: warn on enabling beacon while off channel
wl12xx: improve some debug logs
wl12xx: fix list_add/list_del
wl12xx: FW recovery trigger assert bug fix
wl12xx: mutually exclude PLT and normal power modes
wl12xx: check for required fw change while enable or disable role
wl12xx: disable elp sleep while in plt mode
mac80211: purge offchannel Tx on reconfig
wl12xx: Copy FW log as entire mem block
wl12xx: decrease elp timeout to 20ms
wl12xx: triggering FW assert to perform recovery
wl12xx: fix some line spacing
wl12xx: recovery elp_wakeup optimizations
mac80211: purge all pending ROCs on reconfig
wl12xx: block sched scan if p2p client is running
mac80211: increase channel switch request timeout
wl12xx: initialize per-link FW freed blocks correctly
wl12xx: restore default channel configuration
wl12xx: consolidate free_link and always call it
wl12xx: take the mutex before resetting Tx queues
wl12xx: change packet retry count
wl12xx: fix generic cfg fw command

Change-Id: I6df813e1781f5178d9558f7a4b4a70d7900bd6bb
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Yossi Wortzel <yossiw@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Signed-off-by: Ofir Luzon <ofirluzon@ti.com>
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
WLAN - wl12xx: Update to R5.SP3.06 from R5.SP3.01 package

mac80211: reject BA action frames if sent fron non HT STA
mac80211: warn on enabling beacon while off channel
wl12xx: improve some debug logs
wl12xx: fix list_add/list_del
wl12xx: FW recovery trigger assert bug fix
wl12xx: mutually exclude PLT and normal power modes
wl12xx: check for required fw change while enable or disable role
wl12xx: disable elp sleep while in plt mode
mac80211: purge offchannel Tx on reconfig
wl12xx: Copy FW log as entire mem block
wl12xx: decrease elp timeout to 20ms
wl12xx: triggering FW assert to perform recovery
wl12xx: fix some line spacing
wl12xx: recovery elp_wakeup optimizations
mac80211: purge all pending ROCs on reconfig
wl12xx: block sched scan if p2p client is running
mac80211: increase channel switch request timeout
wl12xx: initialize per-link FW freed blocks correctly
wl12xx: restore default channel configuration
wl12xx: consolidate free_link and always call it
wl12xx: take the mutex before resetting Tx queues
wl12xx: change packet retry count
wl12xx: fix generic cfg fw command

Change-Id: I6df813e1781f5178d9558f7a4b4a70d7900bd6bb
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Yossi Wortzel <yossiw@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Igal Chernobelsky <igalc@ti.com>
Signed-off-by: Ofir Luzon <ofirluzon@ti.com>
Signed-off-by: Panduranga Mallireddy <panduranga_mallireddy@ti.com>
wl12xx: fix mem leak in the channel switch command

Channel switch command wasn't freed in certain sanity check,
fix this by moving the check before the command allocation.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
wl12xx: fix unset ret value in wl1271_join

Set the ret value before the return statement.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
cfg80211: consider security during scan results update

AP security changes are not updated in the following scenario:
STA performs a scheduled scan on DFS channel during connection
to open AP, as some devices (wl12xx) will send a probe req on
DFS channels once activity is detected, cfg80211 gets and saves
the scan result from a probe resp. STA disconnected and AP
security is changed to AES, STA performs a passive scan,
cfg80211 gets a new scan result for the same BSSID but now from
beacon. cfg80211_bss_update() finds previous scan result from
probe resp but the security change is not updated correctly.
Fix this by considering security mismatch in rb_find_bss.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
wl12xx:support ap a2dp coex

Add functionality to support AP A2DP co-existence:

1. Add configuration for enable/disable of CTS protection in AP mode
2. Add indication for completion of connection establishment in ap
   mode. This is used by the firmware to change coex parameters
   when a station is in the process and connecting to the ap and
   change them back after the connection has been established.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
wl12xx: fix unsafe dereference of the wlvif

wlvif could be passed as NULL from the wl1271_tx_work_locked()
to the wl1271_prepare_tx_frame() and to wl1271_skb_queue_head()
functions. This may lead to a Kernel panic, fix this by
validating that wlvif != NULL before using it.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Fix error introduced by copy-paste from Gerrit

The » which Gerrit uses to indicate hard tabs somehow sneaked into the
actual code via http://review.cyanogenmod.org/#/c/34963/.  Take them
out.

Change-Id: I07ceac0159aa787b02a3f383843c19a33a88d791
Merge branch 'jellybean-encore' into cm-10.1

Conflicts:
	mac80211/compat_wl12xx/compat/crc8.c
	mac80211/compat_wl12xx/net/wireless/core.c
	mac80211/compat_wl12xx/net/wireless/reg.c
Merge remote-tracking branch 'steven/cm-10.1' into HEAD