diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2018-02-18 21:31:59 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2018-02-18 21:31:59 +0000 |
commit | e5837c658b65cea29dc0c96811dda305382a8262 (patch) | |
tree | e73e9beb6579ad7810b5641ad4c5df99817b40e4 /iw_if.h | |
parent | 55b5c68b79748789dd2f374e21db9e883f4b8d84 (diff) | |
parent | 1fc41b776f712f321c1f355d391c6a5eaf79ebfa (diff) | |
download | wavemon-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.h | 34 |
1 files changed, 3 insertions, 31 deletions
@@ -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); /* |