Send CTRL-EVENT-REGDOM-CHANGE event on the parent interface
authorIlan Peer <ilan.peer@intel.com>
Mon, 25 Apr 2016 08:24:58 +0000 (11:24 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 May 2016 14:19:02 +0000 (17:19 +0300)
commit3b11ad34ebac7616255577729d731e6a363e8e75
treec75f8f88921e3f508c1bcd8aa84ede6209a10248
parentdf49b90e35ec4dbb6c6ec3fa00965ab3f4477c63
Send CTRL-EVENT-REGDOM-CHANGE event on the parent interface

The NL80211_CMD_WIPHY_REG_CHANGE can be handled by any of the
interfaces that are currently controlled by the wpa_supplicant.
However, some applications expect the REGDOM_CHANGE event to be
sent on the control interface of the initially added interface
(and do not expect the event on any of child interfaces).

To resolve this, when processing NL80211_CMD_WIPHY_REG_CHANGE,
find the highest parent in the chain, and use its control interface
to emit the CTRL-EVENT-REGDOM-CHANGE event.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/events.c