~ubuntu-branches/ubuntu/hardy/wpasupplicant/hardy

« back to all changes in this revision

Viewing changes to wpa_supplicant/mlme.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Alexander Sack
  • Date: 2007-08-26 16:06:57 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070826160657-2m8pxoweuxe8f93t
Tags: 0.6.0+0.5.8-0ubuntu1
* New upstream release
* remove patch 11_erroneous_manpage_ref, applied upstream
* remove patch 25_wpas_dbus_unregister_iface_fix, applied upstream

[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
  this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
  back to stable upstream version (0.5.9) (LP: #140763,
  LP: #141233).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * WPA Supplicant - Client mode MLME
3
 
 * Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
4
 
 * Copyright (c) 2004, Instant802 Networks, Inc.
5
 
 * Copyright (c) 2005-2006, Devicescape Software, Inc.
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License version 2 as
9
 
 * published by the Free Software Foundation.
10
 
 *
11
 
 * Alternatively, this software may be distributed under the terms of BSD
12
 
 * license.
13
 
 *
14
 
 * See README and COPYING for more details.
15
 
 */
16
 
 
17
 
#ifndef MLME_H
18
 
#define MLME_H
19
 
 
20
 
struct wpa_supplicant;
21
 
 
22
 
#ifdef CONFIG_CLIENT_MLME
23
 
 
24
 
int ieee80211_sta_init(struct wpa_supplicant *wpa_s);
25
 
void ieee80211_sta_deinit(struct wpa_supplicant *wpa_s);
26
 
int ieee80211_sta_req_scan(struct wpa_supplicant *wpa_s, const u8 *ssid,
27
 
                           size_t ssid_len);
28
 
int ieee80211_sta_deauthenticate(struct wpa_supplicant *wpa_s, u16 reason);
29
 
int ieee80211_sta_disassociate(struct wpa_supplicant *wpa_s, u16 reason);
30
 
int ieee80211_sta_associate(struct wpa_supplicant *wpa_s,
31
 
                            struct wpa_driver_associate_params *params);
32
 
int ieee80211_sta_get_ssid(struct wpa_supplicant *wpa_s, u8 *ssid,
33
 
                           size_t *len);
34
 
void ieee80211_sta_free_hw_features(struct wpa_hw_modes *hw_features,
35
 
                                    size_t num_hw_features);
36
 
void ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len,
37
 
                      struct ieee80211_rx_status *rx_status);
38
 
int ieee80211_sta_get_scan_results(struct wpa_supplicant *wpa_s,
39
 
                                   struct wpa_scan_result *results,
40
 
                                   size_t max_size);
41
 
int ieee80211_sta_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
42
 
                                const u8 *ies, size_t ies_len);
43
 
int ieee80211_sta_send_ft_action(struct wpa_supplicant *wpa_s, u8 action,
44
 
                                 const u8 *target_ap,
45
 
                                 const u8 *ies, size_t ies_len);
46
 
 
47
 
#else /* CONFIG_CLIENT_MLME */
48
 
 
49
 
static inline int ieee80211_sta_init(struct wpa_supplicant *wpa_s)
50
 
{
51
 
        return 0;
52
 
}
53
 
 
54
 
static inline void ieee80211_sta_deinit(struct wpa_supplicant *wpa_s)
55
 
{
56
 
}
57
 
 
58
 
static inline int ieee80211_sta_req_scan(struct wpa_supplicant *wpa_s,
59
 
                                         const u8 *ssid, size_t ssid_len)
60
 
{
61
 
        return -1;
62
 
}
63
 
 
64
 
static inline int ieee80211_sta_deauthenticate(struct wpa_supplicant *wpa_s,
65
 
                                               u16 reason)
66
 
{
67
 
        return -1;
68
 
}
69
 
 
70
 
static inline int ieee80211_sta_disassociate(struct wpa_supplicant *wpa_s,
71
 
                                             u16 reason)
72
 
{
73
 
        return -1;
74
 
}
75
 
 
76
 
static inline int
77
 
ieee80211_sta_associate(struct wpa_supplicant *wpa_s,
78
 
                        struct wpa_driver_associate_params *params)
79
 
{
80
 
        return -1;
81
 
}
82
 
 
83
 
static inline int ieee80211_sta_get_ssid(struct wpa_supplicant *wpa_s,
84
 
                                         u8 *ssid, size_t *len)
85
 
{
86
 
        return -1;
87
 
}
88
 
 
89
 
static inline void
90
 
ieee80211_sta_free_hw_features(struct wpa_hw_modes *hw_features,
91
 
                               size_t num_hw_features)
92
 
{
93
 
}
94
 
 
95
 
static inline void
96
 
ieee80211_sta_rx(struct wpa_supplicant *wpa_s, const u8 *buf, size_t len,
97
 
                 struct ieee80211_rx_status *rx_status)
98
 
{
99
 
}
100
 
 
101
 
static inline int
102
 
ieee80211_sta_get_scan_results(struct wpa_supplicant *wpa_s,
103
 
                               struct wpa_scan_result *results,
104
 
                               size_t max_size)
105
 
{
106
 
        return -1;
107
 
}
108
 
 
109
 
static inline int
110
 
ieee80211_sta_update_ft_ies(struct wpa_supplicant *wpa_s, const u8 *md,
111
 
                            const u8 *ies, size_t ies_len)
112
 
{
113
 
        return -1;
114
 
}
115
 
 
116
 
static inline int
117
 
ieee80211_sta_send_ft_action(struct wpa_supplicant *wpa_s, u8 action,
118
 
                             const u8 *target_ap,
119
 
                             const u8 *ies, size_t ies_len)
120
 
{
121
 
        return -1;
122
 
}
123
 
 
124
 
#endif /* CONFIG_CLIENT_MLME */
125
 
 
126
 
#endif /* MLME_H */