X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fiw.git;a=blobdiff_plain;f=event.c;fp=event.c;h=b132b17f2efd122cedbc33b944fc6c67f9a17da9;hp=51aff97deb0d2287e6b5308472b512dae52159ae;hb=02503184597f0ddf64a7a0441b2e8d2ee82d5542;hpb=ec9f3e7c5aaa256e7217bcf415b64f3a6e2b696c 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]);