Commit 0091c6eb authored by Janusz Dziedzic's avatar Janusz Dziedzic Committed by Luis R. Rodriguez

crda: add AUTO-BW rule flag support

Signed-off-by: 's avatarJanusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: 's avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
parent bef9855d
...@@ -81,6 +81,7 @@ enum reg_rule_flags { ...@@ -81,6 +81,7 @@ enum reg_rule_flags {
* Point links */ * Point links */
RRF_NO_IR = 1<<7, /* do not initiate radiation */ RRF_NO_IR = 1<<7, /* do not initiate radiation */
__RRF_NO_IBSS = 1<<8, /* old no-IBSS rule, maps to no-ir */ __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) #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) ...@@ -750,6 +750,8 @@ static void print_reg_rule(const struct ieee80211_reg_rule *rule)
printf(", PTMP-ONLY"); printf(", PTMP-ONLY");
if (rule->flags & RRF_NO_IR_ALL) if (rule->flags & RRF_NO_IR_ALL)
printf(", NO-IR"); printf(", NO-IR");
if (rule->flags & RRF_AUTO_BW)
printf(", AUTO-BW");
printf("\n"); printf("\n");
} }
...@@ -793,6 +795,8 @@ static uint32_t reglib_parse_rule_flag(char *flag_s) ...@@ -793,6 +795,8 @@ static uint32_t reglib_parse_rule_flag(char *flag_s)
return RRF_PTMP_ONLY; return RRF_PTMP_ONLY;
if (strncmp(flag_s, "NO-IR", 5) == 0) if (strncmp(flag_s, "NO-IR", 5) == 0)
return RRF_NO_IR; return RRF_NO_IR;
if (strncmp(flag_s, "AUTO-BW", 7) == 0)
return RRF_AUTO_BW;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment