From: Markus Theil Date: Tue, 24 Mar 2020 16:21:49 +0000 (+0100) Subject: iw: event: also handle reg change on wiphy X-Git-Tag: v5.8~21 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fiw.git;a=commitdiff_plain;h=02503184597f0ddf64a7a0441b2e8d2ee82d5542;hp=ec9f3e7c5aaa256e7217bcf415b64f3a6e2b696c iw: event: also handle reg change on wiphy Signed-off-by: Markus Theil Link: https://lore.kernel.org/r/20200324162149.3178-1-markus.theil@tu-ilmenau.de Signed-off-by: Johannes Berg --- diff --git a/event.c b/event.c index 51aff97..b132b17 100644 --- a/event.c +++ b/event.c @@ -931,8 +931,12 @@ static int print_event(struct nl_msg *msg, void *arg) case NL80211_CMD_SCHED_SCAN_RESULTS: printf("got scheduled scan results\n"); break; + case NL80211_CMD_WIPHY_REG_CHANGE: case NL80211_CMD_REG_CHANGE: - printf("regulatory domain change: "); + if(gnlh->cmd == NL80211_CMD_WIPHY_REG_CHANGE) + printf("regulatory domain change (phy): "); + else + printf("regulatory domain change: "); reg_type = nla_get_u8(tb[NL80211_ATTR_REG_TYPE]);