iwinfo: add initial hardware detection capabilities
[openwrt/staging/lynxis/omap.git] / package / iwinfo / src / include / iwinfo.h
index 824b945365bf47af78c341a5c2549f2ac2b86ab3..86bf8b1b6d067af47a4b2f4bcba9b0e494cc46a2 100644 (file)
@@ -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 *);