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
commit1fc41b776f712f321c1f355d391c6a5eaf79ebfa (patch)
treed8f3b16ac8fef459fa99e423670e9d00b9ae7bdf /iw_if.h
parent5744c3a0214950433c3a4375798c1c8eba1b398c (diff)
downloadwavemon-upstream/0.8.2.tar.gz
New upstream version 0.8.2upstream/0.8.2
Diffstat (limited to '')
-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);
/*