Skip to content

Commit 0091c6e

Browse files
dziedjanmcgrof
authored andcommitted
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>
1 parent bef9855 commit 0091c6e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

regdb.h

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ enum reg_rule_flags {
8181
* Point links */
8282
RRF_NO_IR = 1<<7, /* do not initiate radiation */
8383
__RRF_NO_IBSS = 1<<8, /* old no-IBSS rule, maps to no-ir */
84+
RRF_AUTO_BW = 1<<11, /* Auto BW calculations */
8485
};
8586

8687
#define RRF_NO_IR_ALL (RRF_NO_IR | __RRF_NO_IBSS)

reglib.c

+4
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static void print_reg_rule(const struct ieee80211_reg_rule *rule)
750750
printf(", PTMP-ONLY");
751751
if (rule->flags & RRF_NO_IR_ALL)
752752
printf(", NO-IR");
753+
if (rule->flags & RRF_AUTO_BW)
754+
printf(", AUTO-BW");
753755

754756
printf("\n");
755757
}
@@ -793,6 +795,8 @@ static uint32_t reglib_parse_rule_flag(char *flag_s)
793795
return RRF_PTMP_ONLY;
794796
if (strncmp(flag_s, "NO-IR", 5) == 0)
795797
return RRF_NO_IR;
798+
if (strncmp(flag_s, "AUTO-BW", 7) == 0)
799+
return RRF_AUTO_BW;
796800

797801
return 0;
798802
}

0 commit comments

Comments
 (0)