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;
}
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;
}
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;
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);