diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-05-27 15:48:27 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-05-27 15:48:27 +0200 |
commit | 77a748bf035eacf82698b9e799fa8054e43df88a (patch) | |
tree | 5d6500f6c4820e7cf02c39d3cbb2207dce489175 /regdb.h | |
parent | f6b8c2c5e6b805210a94727c0b05d8dd6ff35689 (diff) | |
download | crda-77a748bf035eacf82698b9e799fa8054e43df88a.tar.gz crda-77a748bf035eacf82698b9e799fa8054e43df88a.tar.bz2 crda-77a748bf035eacf82698b9e799fa8054e43df88a.zip |
add edge-power settings
Diffstat (limited to 'regdb.h')
-rw-r--r-- | regdb.h | 31 |
1 files changed, 20 insertions, 11 deletions
@@ -55,20 +55,29 @@ struct regdb_file_power_rule { __be32 max_eirp; }; +#define EDGE_POWER_SHIFT 11 + enum reg_rule_flags { - RRF_NO_OFDM = 1<<0, - RRF_NO_CCK = 1<<1, - RRF_NO_INDOOR = 1<<2, - RRF_NO_OUTDOOR = 1<<3, - RRF_DFS = 1<<4, - RRF_PTP_ONLY = 1<<5, - RRF_PTMP_ONLY = 1<<6, - RRF_PASSIVE_SCAN= 1<<7, - RRF_NO_IBSS = 1<<8, - RRF_NO_HT20 = 1<<9, - RRF_NO_HT40 = 1<<10, + RRF_NO_OFDM = 1<<0, + RRF_NO_CCK = 1<<1, + RRF_NO_INDOOR = 1<<2, + RRF_NO_OUTDOOR = 1<<3, + RRF_DFS = 1<<4, + RRF_PTP_ONLY = 1<<5, + RRF_PTMP_ONLY = 1<<6, + RRF_PASSIVE_SCAN = 1<<7, + RRF_NO_IBSS = 1<<8, + RRF_NO_HT20 = 1<<9, + RRF_NO_HT40 = 1<<10, + RRF_EDGE_POWER_MASK = 3<<EDGE_POWER_SHIFT, }; +/* TODO: flesh out what these mean! */ +#define EDGE_POWER_NO 0 +#define EDGE_POWER_1 1 +#define EDGE_POWER_2 2 +#define EDGE_POWER_3 3 + struct regdb_file_reg_rule { /* pointers (offsets) into the file */ __be32 freq_range_ptr, |