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 | 1fc41b776f712f321c1f355d391c6a5eaf79ebfa (patch) | |
tree | d8f3b16ac8fef459fa99e423670e9d00b9ae7bdf /iw_if.h | |
parent | 5744c3a0214950433c3a4375798c1c8eba1b398c (diff) | |
download | wavemon-upstream/0.8.2.tar.gz |
New upstream version 0.8.2upstream/0.8.2
Diffstat (limited to '')
-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); /* |