Use legacy NL80211 STA events for older drivers

This allows tethering on devices with older bcmdhd
drivers to be fixed.  It conditionally reverts
b638fe75d3cb9d21c67386173f10afe65053cc4d
"nl80211: Use native cfg80211 sta events" for these
boards.

Use BOARD_LEGACY_NL80211_STA_EVENTS to enable
this conditional revert.

Forward-port to JB MR1, squashed in Steve Kondik's commit
to handle additional changes.

Change-Id: I4e436c57819944515455725cfd7ac7eeb31552ca

Conflicts:
	wpa_supplicant/events.c
wext: Re-add support for SIGNAL_POLL and DRIVER

Both of these are still used by JB, and wext wifi drivers have some
weird behaviors without it (like a reported poor connection 100% of
the time)

Change-Id: I15339dbea4e15831465e2bb52b11675cb20dc34c
nl80211: add ifndef on AP SME condition

The condition causes problems on driver initialization if the
NL80211_ATTR_DEVICE_AP_SME is not available. Needs
BOARD_NO_APSME_ATTR:=true.

Change-Id: I88e91996d8e6a70f46a5a84d6540bf3d3b628ddd
wpa_supplicant_8 - Hostapd: Android related changes for sockets

Android related changes for socket handling.
Similar to ctrl_iface.c in wpa_supplicant/ctrl_iface.c

Ported from jellybean (was Change-Id: I3f72f5e4746ccdd007f647a923d41629afc17d94)
http://review.cyanogenmod.org/20317

Signed-off-by: Vishal Mahaveer <a0271468@ti.com>
Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ibf95b753d60e47fa2e04d7b703c40851d2a13875
wpa_supplicant: Add get_capability freq

Add "get_capability freq" command to print a more verbose list of channels and
frequencies in MHz. The tag "NO_IBSS" is added, if IBSS mode is not allowed on
a channel. This allows userspace programs to get the frequencies and
limitations associated with each channel.

This extends the information already provided in "get_capability channel" but a
new interface is chosen because of backwards compatibility considerations.

Signed-hostap: Bruno Randolf <br1@einfach.org>
Change-Id: Ic05a080b3cdea3ab095127d8c2e86eb16408bb4f
Fix outdated call in LEGACY_STA_EVENTS block

Change-Id: Id785c72684941d2e05f7257544ac24eb6800ef0e