add no-ibss and passive-scan flags
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 27 May 2008 09:26:21 +0000 (11:26 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 27 May 2008 09:26:21 +0000 (11:26 +0200)
dbparse.py
dump.c
regdb.h

index 0077736..2ba3369 100644 (file)
@@ -10,6 +10,8 @@ flag_definitions = {
     'DFS':             1<<4,
     'PTP-ONLY':                1<<5,
     'PTMP-ONLY':       1<<6,
+    'PASSIVE-SCAN':    1<<7,
+    'NO-IBSS':         1<<8,
 }
 
 class FreqBand(object):
diff --git a/dump.c b/dump.c
index 8aa7078..eede05f 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -84,6 +84,10 @@ static void print_reg_rule(__u8 *db, int dblen, __be32 ruleptr)
                printf(", PTP-ONLY");
        if (flags & RRF_PTMP_ONLY)
                printf(", PTMP-ONLY");
+       if (flags & RRF_PASSIVE_SCAN)
+               printf(", PASSIVE-SCAN");
+       if (flags & RRF_NO_IBSS)
+               printf(", NO-IBSS");
 
        printf("\n");
 }
diff --git a/regdb.h b/regdb.h
index b9de61d..e190049 100644 (file)
--- a/regdb.h
+++ b/regdb.h
@@ -63,6 +63,8 @@ enum reg_rule_flags {
        RRF_DFS         = 1<<4,
        RRF_PTP_ONLY    = 1<<5,
        RRF_PTMP_ONLY   = 1<<6,
+       RRF_PASSIVE_SCAN= 1<<7,
+       RRF_NO_IBSS     = 1<<8,
 };
 
 struct regdb_file_reg_rule {