Wlan: Calculate max number of assoc in getMaxAssoc ioctl command.

getMaxAssoc ioctl command returns the value set in CCM. It does not
considers the number of Self STA created for each open adapter hence
may return incorrect value.

Add calculation to return the maximum association count based on number
of supported STAs, reserved STAs and self STAs for open adapters.

Change-Id: I354baf540dfb65cf234a4d7e851799fb2cb5cc64
CRs-Fixed: 719372
sap: Scan band preference

For AP auto channel selection, customers should be able to:
1.Only choose 2.4G for scan
2.Only choose 5G for scan
3.Scan both bands
a.Start with 2.4G, if ACS detects a suitable channel,
setup SoftAP in 2.4G itself do not waste time scanning 5G
b.Start with 5G, if ACS detects a suitable channel,
setup SoftAP in 5G itself, do not waste time scanning 2.4G

Two iwpriv commands are added to set and get scan band
preference. When scan preference is set, the preferred
band will be scanned first, if a channel is selected then
the scan is finished, otherwise the next band will be scanned.
Command format:
iwpriv wlan0 scan_band_pref <0|1|2>  0 --- no preference,
                                      1 --- prefer 2.4G band
                                      2 --- prefer 5G band
iwpriv wlan0 get_scan_pref

Change-Id: I1c99af02c7c6b5c79f3bc86c78d4b19ed71067c5
CRs-fixed: 722413
wlan: If PMF is enabled dont send broadcast disassoc after killing SAP.

When SAP is killed it send deauth to all STA and then broadcast disassoc.
If PMF is enabled it should not send BC disassoc as we dont support
BC disassoc with MIC.

Added a check to avoid sending BC disassoc if PMF is enabled.

Change-Id: I3325132cbf71de1c9095b0652a40156ddd3931bc
CRs-fixed: 665186
TDLS: Copy IEs passed by the supplicant at the end of the frame

Copy additional IEs passed by the supplicant in TDLS discovery
response frame at the end of the frame without populating the same
internally.

Change-Id: I5236ca36caff5a06a8d10b412e531299df2ee2d2
CRs-Fixed: 728696
Wlan: Release 3.2.3.419

Release 3.2.3.419

Change-Id: I807615eb9e46209217ed2c8ae53a1659b8eccde9
CRs-Fixed: 688141