mwifiex: toggle carrier state in start_ap/stop_ap.

In uap mode the carrier is not enabled until after the first STA joins.
The carrier triggers the bridge to start its state machine which takes
4 seconds as it transitions from disabled->listening->learning->forwarding.
During this time the bridge drops all traffic, and the EAPOL handshake
times out after 3 seconds, preventing stations from joining.

Follow the example of mac80211 and start the carrier in start_ap and
disable it in stop_ap. This has a nice side benefit of allowing the first
station connection times to be reduced by up to 75%.

Fixes b/20833713.

Change-Id: Iccf04a0d4c90c0763f3399bf915e6d0e8f3314e5
2 files changed