diff options
author | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 18:19:09 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@frijolero.org> | 2012-01-18 18:19:09 -0800 |
commit | 47b1aaa36e770be587c33f0f5345fe8df550aabc (patch) | |
tree | 59d194b43c7df4ab111526b1b99802d98639427a | |
parent | 11015cf7b1aa0501d90aacbf42dc2ac14041543d (diff) | |
download | crda-47b1aaa36e770be587c33f0f5345fe8df550aabc.tar.gz crda-47b1aaa36e770be587c33f0f5345fe8df550aabc.tar.bz2 crda-47b1aaa36e770be587c33f0f5345fe8df550aabc.zip |
crda: rename reglib_get_*() routinesv1.1.3upstream/1.1.3
reglib_get_country_idx() --> reglib_get_rd_alpha2()
reglib_get_country_alpha2() --> reglib_get_rd_alpha2()
This reflects better what we provide back out.
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
-rw-r--r-- | crda.c | 2 | ||||
-rw-r--r-- | reglib.c | 4 | ||||
-rw-r--r-- | reglib.h | 8 |
3 files changed, 7 insertions, 7 deletions
@@ -191,7 +191,7 @@ int main(int argc, char **argv) close(fd); - rd = reglib_get_country_alpha2(alpha2, *regdb); + rd = reglib_get_rd_alpha2(alpha2, *regdb); if (!rd) { fprintf(stderr, "No country match in regulatory database.\n"); return -1; @@ -226,7 +226,7 @@ country2rd(uint8_t *db, int dblen, } struct ieee80211_regdomain * -reglib_get_country_idx(unsigned int idx, const char *file) +reglib_get_rd_idx(unsigned int idx, const char *file) { int fd; struct stat stat; @@ -288,7 +288,7 @@ reglib_get_country_idx(unsigned int idx, const char *file) } struct ieee80211_regdomain * -reglib_get_country_alpha2(const char *alpha2, const char *file) +reglib_get_rd_alpha2(const char *alpha2, const char *file) { int fd; struct stat stat; @@ -74,16 +74,16 @@ 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); struct ieee80211_regdomain * -reglib_get_country_idx(unsigned int idx, const char *file); +reglib_get_rd_idx(unsigned int idx, const char *file); #define reglib_for_each_country(__rd, __idx, __file) \ - for (__rd = reglib_get_country_idx(__idx, __file); \ + for (__rd = reglib_get_rd_idx(__idx, __file); \ __rd != NULL; \ - __rd = reglib_get_country_idx(__idx, __file), \ + __rd = reglib_get_rd_idx(__idx, __file), \ __idx++) struct ieee80211_regdomain * -reglib_get_country_alpha2(const char *alpha2, const char *file); +reglib_get_rd_alpha2(const char *alpha2, const char *file); /* reg helpers */ void print_regdom(struct ieee80211_regdomain *rd); |