Search Linux Wireless

Bug in iw prevents setting the "cook" monitor flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is an off by one error in interface.c of iw that prevents
passing of the cook flag when creating a monitor interface. The fix is
simple:


--- a/interface.c       2009-03-02 15:11:58.748078548 -0800
+++ b/interface.c       2009-03-02 15:12:14.695203787 -0800
@@ -36,7 +36,7 @@ static int parse_mntr_flags(int *_argc,
        while (argc) {
                int ok = 0;
                for (flag = __NL80211_MNTR_FLAG_INVALID;
-                    flag < NL80211_MNTR_FLAG_MAX; flag++) {
+                    flag < NL80211_MNTR_FLAG_MAX + 1; flag++) {
                        if (strcmp(*argv, mntr_flags[flag]) == 0) {
                                ok = 1;
                                /*
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux