Revert "Revert "Initialize P2P on p2p0 and not wlan0 (JB)""

This reverts commit ff8600f0c5d08b245f1ec6e999b028ade86121bb.

This is required for normal operation of wlan0 + p2p0 interfaces
bgscan: stop bgscan only on disassociaion

Stopping bgscan on any state other than COMPLETED results
in bgscan reset (stop + start) on every rekeying operation.

Signed-hostap: Eliad Peller <eliad@wizery.com>
bgscan_learn: avoid redundant frequencies

Some hw modes (e.g. 11b and 11g) contain the same frequencies,
causing the supp_freqs array to be populated with redundant entries.

Check for the existence of the freq before adding it.

Signed-hostap: Eliad Peller <eliad@wizery.com>
bgscan_learn: start scanning from the first freq

bgscan_learn_get_probe_freq() starts from returning
the second entry in the supp_freqs arrays.

Change its logic a bit to make it start from the first
entry.

Signed-hostap: Eliad Peller <eliad@wizery.com>
driver_nl80211: set_country fix

Regulatory domain setting may take some time.
Getting reg domain info immediately after reg domain setting returns
invalid reg domain data. Loop is added to read reg domain info back and
to compare set country. If read country does not match, fail to 1 sec sleep
and retry get/compare again.

Signed-off-by: Igal Chernobelsky <igalc@ti.com>
hostapd: modifications for compilation on ARM

- added .config file for libnl2.0 + nl80211 driver
- sourceme file (env to be changed per computer)
- build_wpa.sh (build command to be changed per computer)
- made changes to makefiles to compile statically with libnl + openssl
wpa_supplicant: build on arm + p2p config file

- Changes to Makefile
- Added build_wpa.sh to wpa_supplicant
- Added .config that uses LIBNL20 and configures P2P
- Changed sourceme to contain correct arm toolchain (2010)