Merge hostapd upstream into master.

Current as of:
http://w1.fi/cgit/hostap/commit/?id=ca68a8b561c48393c8ba25055ce294caaa3ac008

Note that this resolves the merge conflicts, but does not compile.
A second commit on top of this one is needed to get a working hostapd.

Change-Id: Ib1f533ef8f3399aaec7d4bc6708f7ea126a2c39c