summaryrefslogtreecommitdiff
path: root/intersect.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@qca.qualcomm.com>2011-11-15 13:50:23 -0800
committerLuis R. Rodriguez <mcgrof@qca.qualcomm.com>2011-11-15 13:50:23 -0800
commitd6bf498f05a2ac64a48137da00c0ada021a38fe0 (patch)
treef7c1fd9348c66fbb20c4beb9525ee309b3dc777d /intersect.c
parent8cbde0452c707ad0fab4ce65fcbd96cc10a8482d (diff)
downloadcrda-d6bf498f05a2ac64a48137da00c0ada021a38fe0.tar.gz
crda-d6bf498f05a2ac64a48137da00c0ada021a38fe0.tar.bz2
crda-d6bf498f05a2ac64a48137da00c0ada021a38fe0.zip
crda: use stdint.h instead of linux/types.h
Given that we may need to make a library out of some routines here to share with the regulatory simulator. Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Diffstat (limited to 'intersect.c')
-rw-r--r--intersect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/intersect.c b/intersect.c
index 2f4d416..2e5dacf 100644
--- a/intersect.c
+++ b/intersect.c
@@ -23,7 +23,7 @@
static int is_valid_reg_rule(const struct ieee80211_reg_rule *rule)
{
const struct ieee80211_freq_range *freq_range = &rule->freq_range;
- __u32 freq_diff;
+ uint32_t freq_diff;
if (freq_range->start_freq_khz == 0 || freq_range->end_freq_khz == 0)
return 0;
@@ -48,7 +48,7 @@ static int reg_rules_intersect(
{
struct ieee80211_freq_range *freq_range1, *freq_range2, *freq_range;
struct ieee80211_power_rule *power_rule1, *power_rule2, *power_rule;
- __u32 freq_diff;
+ uint32_t freq_diff;
freq_range1 = &rule1->freq_range;
freq_range2 = &rule2->freq_range;
@@ -184,7 +184,7 @@ int main(int argc, char **argv)
{
int fd;
struct stat stat;
- __u8 *db;
+ uint8_t *db;
struct regdb_file_header *header;
struct regdb_file_reg_country *countries;
int dblen, siglen, num_countries, i, r = 0;