]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
remove "raw" thing
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 8 Apr 2009 11:42:38 +0000 (13:42 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Wed, 8 Apr 2009 12:12:42 +0000 (14:12 +0200)
iw.c
iw.h

diff --git a/iw.c b/iw.c
index 034cd6139e80070ffc039032fecd16f86c7f4427..1a168095d2e3d278b905524b48755d41de46b5ba 100644 (file)
--- a/iw.c
+++ b/iw.c
@@ -122,7 +122,6 @@ static void usage(const char *argv0)
                        fprintf(stderr, "\tphy <phyname> ");
                        break;
                case CIB_NETDEV:
-               case CIB_NETDEV_RAW:
                        fprintf(stderr, "\tdev <devname> ");
                        break;
                }
@@ -257,12 +256,6 @@ int handle_cmd(struct nl80211_state *state, enum id_input idby,
        if (cmd >= &__stop___cmd)
                return 1;
 
-       if (cmd->idby == CIB_NETDEV_RAW) {
-               argc++;
-               argv--;
-               return cmd->handler(state, NULL, NULL, argc, argv);
-       }
-
        msg = nlmsg_alloc();
        if (!msg) {
                fprintf(stderr, "failed to allocate netlink message\n");
diff --git a/iw.h b/iw.h
index c96fd68262057c7ebc4cefba95b6b93990b46fe4..7ae65b7069ef7945cb88f9422d15ce8319fc401a 100644 (file)
--- a/iw.h
+++ b/iw.h
@@ -24,7 +24,6 @@ enum command_identify_by {
        CIB_NONE,
        CIB_PHY,
        CIB_NETDEV,
-       CIB_NETDEV_RAW,
 };
 
 enum id_input {