~ubuntu-branches/ubuntu/wily/lxpanel/wily-proposed

« back to all changes in this revision

Viewing changes to plugins/netstat/wireless.h

  • Committer: Package Import Robot
  • Author(s): Julien Lavergne
  • Date: 2015-01-31 15:30:45 UTC
  • mfrom: (1.3.3)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: package-import@ubuntu.com-20150131153045-1r9i4602vrplnx3i
ImportĀ upstreamĀ versionĀ 0.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HAVE_NS_WIRELESS_H
 
2
#define HAVE_NS_WIRELESS_H
 
3
 
 
4
#include "netstat.h"
 
5
 
 
6
/* auth protocol */
 
7
#define NS_WIRELESS_AUTH_OFF          0
 
8
#define NS_WIRELESS_AUTH_WEP          1
 
9
#define NS_WIRELESS_AUTH_WPA          2
 
10
 
 
11
/* Cypher values in GENIE (pairwise and group) */
 
12
#define NS_IW_IE_CIPHER_NONE          0
 
13
#define NS_IW_IE_CIPHER_WEP40         1
 
14
#define NS_IW_IE_CIPHER_TKIP          2
 
15
#define NS_IW_IE_CIPHER_WRAP          3
 
16
#define NS_IW_IE_CIPHER_CCMP          4
 
17
#define NS_IW_IE_CIPHER_WEP104        5
 
18
 
 
19
/* Key management in GENIE */
 
20
#define NS_IW_IE_KEY_MGMT_NONE        0
 
21
#define NS_IW_IE_KEY_MGMT_802_1X      1
 
22
#define NS_IW_IE_KEY_MGMT_PSK         2
 
23
 
 
24
typedef struct {
 
25
        char *essid;
 
26
        char *apaddr;
 
27
        int quality;
 
28
        int en_method;
 
29
        int pairwise;
 
30
        int group;
 
31
        int key_mgmt;
 
32
        gboolean haskey;
 
33
} ap_info;
 
34
 
 
35
typedef struct ap_info_node {
 
36
        ap_info             *info;
 
37
        struct ap_info_node *next;
 
38
} APLIST;
 
39
 
 
40
void wireless_aplist_free(void *aplist, GObject *dummy);
 
41
APLIST *wireless_scanning(int iwsockfd, const char *ifname);
 
42
 
 
43
gboolean wireless_refresh(int iwsockfd, const char *ifname);
 
44
 
 
45
#endif