diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2014-05-09 10:38:43 +0200 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-06-10 14:51:40 -0700 |
commit | 0091c6eb383121fc66be74fe85519b0edb87bddc (patch) | |
tree | 21ec6f897e1a94984e3de6705e3fdf5dd592d8d9 | |
parent | bef9855dfe7df03f95c388963c8c5d697df43e46 (diff) | |
download | crda-0091c6eb383121fc66be74fe85519b0edb87bddc.tar.gz |
crda: add AUTO-BW rule flag support
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r-- | regdb.h | 1 | ||||
-rw-r--r-- | reglib.c | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -81,6 +81,7 @@ enum reg_rule_flags { * Point links */ RRF_NO_IR = 1<<7, /* do not initiate radiation */ __RRF_NO_IBSS = 1<<8, /* old no-IBSS rule, maps to no-ir */ + RRF_AUTO_BW = 1<<11, /* Auto BW calculations */ }; #define RRF_NO_IR_ALL (RRF_NO_IR | __RRF_NO_IBSS) @@ -750,6 +750,8 @@ static void print_reg_rule(const struct ieee80211_reg_rule *rule) printf(", PTMP-ONLY"); if (rule->flags & RRF_NO_IR_ALL) printf(", NO-IR"); + if (rule->flags & RRF_AUTO_BW) + printf(", AUTO-BW"); printf("\n"); } @@ -793,6 +795,8 @@ static uint32_t reglib_parse_rule_flag(char *flag_s) return RRF_PTMP_ONLY; if (strncmp(flag_s, "NO-IR", 5) == 0) return RRF_NO_IR; + if (strncmp(flag_s, "AUTO-BW", 7) == 0) + return RRF_AUTO_BW; return 0; } |