From: Johannes Berg Date: Wed, 17 Sep 2008 08:20:09 +0000 (+0200) Subject: fix "command not found" code X-Git-Tag: v0.9.3~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=747010315672faced84d8004e9f13f92efdc84ac;p=thirdparty%2Fiw.git fix "command not found" code --- diff --git a/iw.c b/iw.c index bba3e6f..e09d975 100644 --- a/iw.c +++ b/iw.c @@ -210,7 +210,7 @@ static int handle_cmd(struct nl80211_state *state, break; } - if (cmd == &__stop___cmd) + if (cmd >= &__stop___cmd) return 1; msg = nlmsg_alloc();