Signed-off-by: Markus Theil <markus.theil@xxxxxxxxxxxxx> --- event.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]); -- 2.26.0