cfg80211: Fix memory leak

When a driver requests a specific regulatory domain after cfg80211 already
has one, a struct ieee80211_regdomain is leaked.

Change-Id: Id28fc9861b9c911a97bd242439eabca097d76258
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: b7566fc363e23f0efd3fa1e1460f9421cdc0d77e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[mattw@codeaurora.org: trivially backport to the msm-3.4 kernel]
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
cfg80211: export regulatory_hint_user() API

This is to help the hardware configured in world
roaming mode to save power when not connected to
any AP.

CRs-Fixed: 542802
Change-Id: Ia643d0e9848dcd486832973bd6dd186edd7bd4ea
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
cfg80211: add flags to define country IE processing rules

802.11 cards may have different country IE parsing behavioural
preferences and vendors may want to support these. These preferences
were managed by the WIPHY_FLAG_CUSTOM_REGULATORY and the
WIPHY_FLAG_STRICT_REGULATORY flags and their combination.
Instead of using this existing notation, split out the country IE
behavioural preferences to a new flag. This will allow us to add more
customizations easily and make the code more maintainable. Also add
a new flag to disable country IE hints issued by the CORE as the
first customization.

Change-Id: I66ba4a92ac0f029a115eea0a274b02db11279787
CRs-Fixed: 542802
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
driver: staging: prima: updated 3.2.3.172 (5b58dd7)

a99c61d wlan: Fix DHCP failure caused by PTK overwrite
e8f4749 wlan: Fix DXE stop during SSR
971c000 wlan: DroidSec: String handling and input validation issues
42e6262 wlan: Initilize country IE prefrence flag
7aa4885 Add the fix that was deleted in other change
1d378ac wlan: include wesmode support again
79f77aa wlan: Fix bssid in del_pmksa and flush_pmksa
edc3d14 Add Support for DELBA per session on Coex Indication
11fec72 wlan: ARGENTINA CountryCode should be 'AR' in csrApiScan.c
2197d6e WLAN: Fix memory leaks during get BSS Descriptor IE's
fae3a75 wlan: Add support to enable/disable MAWC
409b45b wlan: Add support to enable/disable MAWC in HAL message
24c5b95 wlan: Ignore broadcast mac address to get connected staId.

Change-Id: Ie7dcdc53e2f288185e60210abddb06210cd819dc