aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl/os/linux/include/cfg80211.h
blob: d5253207b1982999a97769e6a7dbd0b9b2ee43ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//------------------------------------------------------------------------------
// Copyright (c) 2004-2010 Atheros Communications Inc.
// All rights reserved.
//
// 
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//
//
//
// Author(s): ="Atheros"
//------------------------------------------------------------------------------

#ifndef _AR6K_CFG80211_H_
#define _AR6K_CFG80211_H_

struct wireless_dev *ar6k_cfg80211_init(struct device *dev);
void ar6k_cfg80211_deinit(struct ar6_softc *ar);

void ar6k_cfg80211_scanComplete_event(struct ar6_softc *ar, int status);

void ar6k_cfg80211_connect_event(struct ar6_softc *ar, u16 channel,
                                u8 *bssid, u16 listenInterval,
                                u16 beaconInterval,NETWORK_TYPE networkType,
                                u8 beaconIeLen, u8 assocReqLen,
                                u8 assocRespLen, u8 *assocInfo);

void ar6k_cfg80211_disconnect_event(struct ar6_softc *ar, u8 reason,
                                    u8 *bssid, u8 assocRespLen,
                                    u8 *assocInfo, u16 protocolReasonStatus);

void ar6k_cfg80211_tkip_micerr_event(struct ar6_softc *ar, u8 keyid, bool ismcast);

#ifdef CONFIG_NL80211_TESTMODE
void ar6000_testmode_rx_report_event(struct ar6_softc *ar, void *buf,
				     int buf_len);
#else
static inline void ar6000_testmode_rx_report_event(struct ar6_softc *ar,
						   void *buf, int buf_len) 
{
}
#endif


#endif /* _AR6K_CFG80211_H_ */