-- regards; Peizhao
diff --git a/iw.c b/iw.c index dc99566..4051a18 100644 --- a/iw.c +++ b/iw.c @@ -359,8 +359,10 @@ static int __handle_cmd(struct nl80211_state *state, enum id_input idby, /* ok ... bit of a hack for the dupe 'info' section */ if (match && sectcmd->idby != command_idby) continue; - if (strcmp(sectcmd->name, section) == 0) + if (strcmp(sectcmd->name, section) == 0){ match = sectcmd; + break; + } } sectcmd = match;