]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Handle NL80211_CMD_WIPHY_REG_CHANGE event
authorPeng Xu <pxu@codeaurora.org>
Wed, 14 Mar 2018 22:10:19 +0000 (15:10 -0700)
committerJouni Malinen <j@w1.fi>
Wed, 6 Jun 2018 21:05:39 +0000 (00:05 +0300)
Handle NL80211_CMD_WIPHY_REG_CHANGE the same way as the
NL80211_CMD_REG_CHANGE event. The wiphy-specific event is generated by
the cfg80211 reg_process_self_managed_hints() function, e.g., when going
through regulatory_set_wiphy_regd_sync_rtnl(). Previously, such events
were ignored completely in hostapd/wpa_supplicant.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211_event.c

index 062b0b3184cac819a01eace3a035a9bb64621c04..7ac8e139f785a8e8aa5d5e5fe7212493d3ffb247 100644 (file)
@@ -2473,6 +2473,7 @@ static void do_process_drv_event(struct i802_bss *bss, int cmd,
                nl80211_cqm_event(drv, tb);
                break;
        case NL80211_CMD_REG_CHANGE:
+       case NL80211_CMD_WIPHY_REG_CHANGE:
                nl80211_reg_change_event(drv, tb);
                break;
        case NL80211_CMD_REG_BEACON_HINT: