]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - reg.c
iw: 'phy <name> reg get' shouldn't dump all domains
[thirdparty/iw.git] / reg.c
diff --git a/reg.c b/reg.c
index db1b12906519fd2450d7054dd598c70a0cc21b8c..3dc4b0eec6798b401138269c9379f2ccad515a4d 100644 (file)
--- a/reg.c
+++ b/reg.c
@@ -256,7 +256,7 @@ static int handle_reg_get(struct nl80211_state *state,
 }
 COMMAND(reg, get, NULL, NL80211_CMD_GET_REG, 0, CIB_NONE, handle_reg_get,
        "Print out the kernel's current regulatory domain information.");
-COMMAND(reg, get, NULL, NL80211_CMD_GET_REG, 0, CIB_PHY, handle_reg_get,
+COMMAND(reg, get, NULL, NL80211_CMD_GET_REG, 0, CIB_PHY, handle_reg_dump,
        "Print out the devices' current regulatory domain information.");
 HIDDEN(reg, dump, NULL, NL80211_CMD_GET_REG, NLM_F_DUMP, CIB_NONE,
        handle_reg_dump);