diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-28 06:54:04 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-28 06:54:04 +0000 |
commit | 07fafab9c16ec600d6621c9c67d7474c63ff705b (patch) | |
tree | 427aab09af5ca4f10c6b325a0d566ed4bf964625 /contrib/package/iwinfo/src/iwinfo_wext.c | |
parent | 16d65c96b035a10aa93a96e5a789ebef9ca3a76d (diff) |
[libiwinfo] introduce country() and countrylist() (ISO3166 to driver code mapping)
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_wext.c')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_wext.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_wext.c b/contrib/package/iwinfo/src/iwinfo_wext.c index 8ea380204c..8fe0305f1d 100644 --- a/contrib/package/iwinfo/src/iwinfo_wext.c +++ b/contrib/package/iwinfo/src/iwinfo_wext.c @@ -184,7 +184,7 @@ int wext_get_bssid(const char *ifname, char *buf) return 0; } - return -1; + return -1; } int wext_get_bitrate(const char *ifname, int *buf) @@ -197,7 +197,7 @@ int wext_get_bitrate(const char *ifname, int *buf) return 0; } - return -1; + return -1; } int wext_get_channel(const char *ifname, int *buf) @@ -235,7 +235,7 @@ int wext_get_channel(const char *ifname, int *buf) } } - return -1; + return -1; } int wext_get_frequency(const char *ifname, int *buf) @@ -273,7 +273,7 @@ int wext_get_frequency(const char *ifname, int *buf) } } - return -1; + return -1; } int wext_get_txpower(const char *ifname, int *buf) @@ -413,7 +413,7 @@ int wext_get_txpwrlist(const char *ifname, char *buf, int *len) return 0; } - return -1; + return -1; } int wext_get_freqlist(const char *ifname, char *buf, int *len) @@ -447,6 +447,18 @@ int wext_get_freqlist(const char *ifname, char *buf, int *len) return -1; } +int wext_get_country(const char *ifname, char *buf) +{ + sprintf(buf, "00"); + return 0; +} + +int wext_get_countrylist(const char *ifname, char *buf, int *len) +{ + /* Stub */ + return -1; +} + int wext_get_encryption(const char *ifname, char *buf) { /* No reliable crypto info in wext */ @@ -458,4 +470,3 @@ int wext_get_mbssid_support(const char *ifname, int *buf) /* No multi bssid support atm */ return -1; } - |