WLAN: Fix for XML to Nv.bin failure

During XML to nv.bin write case through QRCT tools while
sending the message to the apss through PTT socket using
MSG_DONTWAIT flag observed -EAGAIN error sometime as kernel
SKB buffer are getting full while result into XML to nv.bin
failure. To resolve this failure send message to apss without
using MSG_DONTWAIT flag through netlink socket interface.

Change-Id: If14beacca558d52c57dbab18e2009add452e4390
CRs-Fixed: 637477
WLAN: Pass correct payload while packing management packets.

When sending management frames(Probe rsp, Assoc req/rsp), get
packed packet size after adding all IEs to the frame. So that
correct payload size will be passed, while packing packets.

Change-Id: I91d25fda90f337b987ed20bb924d9f62a8dd82ec
CRs-Fixed: 654880
wlan:Block WiFi Direct GO/SAP mode on UNII-1 Band.

Make UNII-1 Band channels to passive channel.
GO/SAP shouldn't be started on UNII-1 band channels
(36, 38, 40, 42, 44, 46, 48) if country code is US.
This logic is already present for nv.bin solution, extending
this logic for enhanced regulatory solution.

CRs-Fixed: 650843
Change-Id: Icbb4c76b5b0c760f93bea0311f0f4dd73dfcdc1d
HS20_REL2:Adding missing changes for OSEN support

OSEN changes to accomodate the latest supplicant changes are added
in the driver and some of the missing changes to complete the osen
connection are added.

CRs-fixed: 656295
Change-Id: If4ddb1dd485a0004fc2f9439e9898c5696ad5c60
wlan: Support to send bcast/mcast QoS data in IBSS.

Adds support to send bcast/mcast QoS data in IBSS with STA ID 0.

Change-Id: I7dc1f17589c264a69a099a752c22e9a8df46c8be
CRs-fixed: 654498
wlan: Select Country code on basis of majority.

1. Take the statistics of all the scan results obtained & determine
  the most popular country advertised by 11d IE in the scan results.
2. Choose the country that is advertized by majority of the AP's
   and aquire that country as the current 11d country..
3. Continue doing step #1 & #2 for each scan.

CRs-Fixed: 600997
Change-Id: I17b8e142c6442a198b62082abbfdef5b64bd6206
Wlan: Revision 3.2.3.311

Revision  3.2.3.311

Change-Id: Ie10549c629ba4be296602ff0e14614f86f547f43