diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-04 03:42:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-12-04 03:42:17 +0000 |
commit | cf716c04e697f13d8fd6373a76a5ba57f540f64e (patch) | |
tree | a6a2ff8f2ef405ee8a79e1e5ba92689d9d485512 /package/iwinfo/src/include/iwinfo.h | |
parent | 0f2f3e734d6a4460e2002a0a98136c92ebb8450f (diff) | |
download | upstream-cf716c04e697f13d8fd6373a76a5ba57f540f64e.tar.gz upstream-cf716c04e697f13d8fd6373a76a5ba57f540f64e.tar.bz2 upstream-cf716c04e697f13d8fd6373a76a5ba57f540f64e.zip |
[package] iwinfo: add initial hardware detection capabilities
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29421 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src/include/iwinfo.h')
-rw-r--r-- | package/iwinfo/src/include/iwinfo.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/iwinfo/src/include/iwinfo.h b/package/iwinfo/src/include/iwinfo.h index 824b945365..86bf8b1b6d 100644 --- a/package/iwinfo/src/include/iwinfo.h +++ b/package/iwinfo/src/include/iwinfo.h @@ -95,7 +95,26 @@ struct iwinfo_iso3166_label { uint8_t name[28]; }; +struct iwinfo_hardware_id { + uint16_t vendor_id; + uint16_t device_id; + uint16_t subsystem_vendor_id; + uint16_t subsystem_device_id; +}; + +struct iwinfo_hardware_entry { + const char *vendor_name; + const char *device_name; + uint16_t vendor_id; + uint16_t device_id; + uint16_t subsystem_vendor_id; + uint16_t subsystem_device_id; + int16_t txpower_offset; + int16_t frequency_offset; +}; + extern const struct iwinfo_iso3166_label IWINFO_ISO3166_NAMES[]; +extern const struct iwinfo_hardware_entry IWINFO_HARDWARE_ENTRIES[]; struct iwinfo_ops { @@ -113,6 +132,8 @@ struct iwinfo_ops { int (*ssid)(const char *, char *); int (*bssid)(const char *, char *); int (*country)(const char *, char *); + int (*hardware_id)(const char *, char *); + int (*hardware_name)(const char *, char *); int (*encryption)(const char *, char *); int (*assoclist)(const char *, char *, int *); int (*txpwrlist)(const char *, char *, int *); |