diff options
author | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 18:03:11 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 18:03:11 -0800 |
commit | 1dce4105ee1723b23acd08cfdb9d428f5162efdb (patch) | |
tree | 4125c366169a730ade314f28dfff3a3473a3561d | |
parent | 63ff7a25357b2ab0ce89a46794f9ee4ff2c2508d (diff) | |
download | crda-1dce4105ee1723b23acd08cfdb9d428f5162efdb.tar.gz crda-1dce4105ee1723b23acd08cfdb9d428f5162efdb.tar.bz2 crda-1dce4105ee1723b23acd08cfdb9d428f5162efdb.zip |
crda: make country2rd() static
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
-rw-r--r-- | reglib.c | 5 | ||||
-rw-r--r-- | reglib.h | 4 |
2 files changed, 3 insertions, 6 deletions
@@ -186,8 +186,9 @@ static void reg_rule2rd(uint8_t *db, int dblen, } /* Converts a file regdomain to ieee80211_regdomain, easier to manage */ -struct ieee80211_regdomain *country2rd(uint8_t *db, int dblen, - struct regdb_file_reg_country *country) +static struct ieee80211_regdomain * +country2rd(uint8_t *db, int dblen, + struct regdb_file_reg_country *country) { struct regdb_file_reg_rules_collection *rcoll; struct ieee80211_regdomain *rd; @@ -75,10 +75,6 @@ static inline uint32_t min(uint32_t a, uint32_t b) void *crda_get_file_ptr(uint8_t *db, int dblen, int structlen, uint32_t ptr); int crda_verify_db_signature(uint8_t *db, int dblen, int siglen); -/* File reg db entry -> rd converstion utilities */ -struct ieee80211_regdomain *country2rd(uint8_t *db, int dblen, - struct regdb_file_reg_country *country); - struct ieee80211_regdomain * reglib_get_country_idx(unsigned int idx, const char *file); |