From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx> Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx> --- reglib.c | 2 +- reglib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reglib.c b/reglib.c index 0d258d8..57bb22b 100644 --- a/reglib.c +++ b/reglib.c @@ -438,7 +438,7 @@ static int reg_rules_intersect(const struct ieee80211_reg_rule *rule1, power_rule2 = &rule2->power_rule; power_rule = &intersected_rule->power_rule; - freq_range->start_freq_khz = max(freq_range1->start_freq_khz, + freq_range->start_freq_khz = reglib_max(freq_range1->start_freq_khz, freq_range2->start_freq_khz); freq_range->end_freq_khz = min(freq_range1->end_freq_khz, freq_range2->end_freq_khz); diff --git a/reglib.h b/reglib.h index 8ed94d9..21518d2 100644 --- a/reglib.h +++ b/reglib.h @@ -60,7 +60,7 @@ static inline int reglib_is_valid_regdom(const char *alpha2) return 1; } -static inline uint32_t max(uint32_t a, uint32_t b) +static inline uint32_t reglib_max(uint32_t a, uint32_t b) { return (a > b) ? a : b; } -- 1.7.10.4 -- 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