aboutsummaryrefslogtreecommitdiffstats
path: root/iw_if.h
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2018-02-18 21:31:59 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2018-02-18 21:31:59 +0000
commite5837c658b65cea29dc0c96811dda305382a8262 (patch)
treee73e9beb6579ad7810b5641ad4c5df99817b40e4 /iw_if.h
parent55b5c68b79748789dd2f374e21db9e883f4b8d84 (diff)
parent1fc41b776f712f321c1f355d391c6a5eaf79ebfa (diff)
downloadwavemon-e5837c658b65cea29dc0c96811dda305382a8262.tar.gz
Update upstream source from tag 'upstream/0.8.2'
Update to upstream version '0.8.2' with Debian dir 99713d8c3f398f90062f7a8b1d890dd7de10fea5
Diffstat (limited to 'iw_if.h')
-rw-r--r--iw_if.h34
1 files changed, 3 insertions, 31 deletions
diff --git a/iw_if.h b/iw_if.h
index 846e9f9..1d4e238 100644
--- a/iw_if.h
+++ b/iw_if.h
@@ -148,37 +148,9 @@ struct iw_dyn_info {
float freq;
int32_t sens;
unsigned long bitrate;
-
- struct iw_key *keys;
- uint8_t nkeys;
- uint8_t active_key;
};
-/* Return the number of encryption keys marked 'active' in @info */
-static inline uint8_t dyn_info_active_keys(struct iw_dyn_info *info)
-{
- int i, num_active = 0;
-
- for (i = 0; i < info->nkeys; i++)
- num_active += info->keys[i].size &&
- !(info->keys[i].flags & IW_ENCODE_DISABLED);
- return num_active;
-}
-
-/* Return the number of 40-bit/104-bit keys in @info */
-static inline uint8_t dyn_info_wep_keys(struct iw_dyn_info *info)
-{
- int i, num_wep = 0;
-
- for (i = 0; i < info->nkeys; i++)
- if (!(info->keys[i].flags & IW_ENCODE_DISABLED))
- num_wep += info->keys[i].size == 5 ||
- info->keys[i].size == 13;
- return num_wep;
-}
-extern void dyn_info_get(struct iw_dyn_info *info,
- const char *ifname, struct iw_range *ir);
-extern void dyn_info_cleanup(struct iw_dyn_info *info);
+extern void dyn_info_get(struct iw_dyn_info *info, const char *ifname);
/*
@@ -278,8 +250,8 @@ struct scan_result {
pthread_mutex_t mutex;
};
-extern void scan_result_init(struct scan_result *sr);
-extern void scan_result_fini(struct scan_result *sr);
+extern void init_scan_list(struct scan_result *sr);
+extern void free_scan_list(struct scan_entry *head);
extern void *do_scan(void *sr_ptr);
/*