~ubuntu-branches/ubuntu/hardy/linux-backports-modules-2.6.24/hardy-security

« back to all changes in this revision

Viewing changes to updates/wireless/iwlwifi/mac80211/compatible/net/wireless/core.h

  • Committer: Bazaar Package Importer
  • Author(s): , Ben Collins
  • Date: 2008-04-02 06:59:04 UTC
  • Revision ID: james.westby@ubuntu.com-20080402065904-e5knh2gn2hms3xbb
Tags: 2.6.24-14.11
[Ben Collins]

* iwlwifi: Update to iwlwifi-1.2.25 and mac80211-10.0.4
  - LP: #200950
* ubuntu: Slight cleanups to module hiearchy and Makefiles
* mac80211: Enable LED triggers
* iwlwifi: Add LED trigger support (rx and tx only)
  - LP: #176090

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Wireless configuration interface internals.
 
3
 *
 
4
 * Copyright 2006, 2007 Johannes Berg <johannes@sipsolutions.net>
 
5
 */
 
6
#ifndef __NET_WIRELESS_CORE_H
 
7
#define __NET_WIRELESS_CORE_H
 
8
#include <linux/mutex.h>
 
9
#include <linux/list.h>
 
10
#include <linux/netdevice.h>
 
11
#include <net/genetlink.h>
 
12
#include <net/wireless.h>
 
13
#include <net/cfg80211.h>
 
14
 
 
15
struct cfg80211_registered_device {
 
16
        struct cfg80211_ops *ops;
 
17
        struct list_head list;
 
18
        /* we hold this mutex during any call so that
 
19
         * we cannot do multiple calls at once, and also
 
20
         * to avoid the deregister call to proceed while
 
21
         * any call is in progress */
 
22
        struct mutex mtx;
 
23
 
 
24
        /* wiphy index, internal only */
 
25
        int idx;
 
26
 
 
27
        /* associate netdev list */
 
28
        struct mutex devlist_mtx;
 
29
        struct list_head netdev_list;
 
30
 
 
31
        /* must be last because of the way we do wiphy_priv(),
 
32
         * and it should at least be aligned to NETDEV_ALIGN */
 
33
        struct wiphy wiphy __attribute__((__aligned__(NETDEV_ALIGN)));
 
34
};
 
35
 
 
36
static inline
 
37
struct cfg80211_registered_device *wiphy_to_dev(struct wiphy *wiphy)
 
38
{
 
39
        BUG_ON(!wiphy);
 
40
        return container_of(wiphy, struct cfg80211_registered_device, wiphy);
 
41
}
 
42
 
 
43
extern struct mutex cfg80211_drv_mutex;
 
44
extern struct list_head cfg80211_drv_list;
 
45
 
 
46
/* free object */
 
47
extern void cfg80211_dev_free(struct cfg80211_registered_device *drv);
 
48
 
 
49
#endif /* __NET_WIRELESS_CORE_H */