diff options
author | David Kilroy <kilroyd@googlemail.com> | 2009-06-18 18:21:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:44 -0400 |
commit | ea60a6aaf55984a13a7150568cc103d006e86ab2 (patch) | |
tree | 1c6b80d7d6a2129fe33591508ac125b65100fa09 /drivers/net/wireless/orinoco/cfg.h | |
parent | 98e5f404485d5d11b15e8351535a0e064a37647c (diff) |
orinoco: initiate cfg80211 conversion
Initialise and register a wiphy.
Store the orinoco_private structure in the new wiphy, and use the
net_device private area to store the wireless_dev. This results in a
change to the way we navigate from a net_device to the driver private
orinoco_private, which we encapsulate in the inline function ndev_priv.
Most of the remaining calls to netdev_priv are thus replaced by
ndev_priv.
We can immediately rely on cfg80211 to handle SIOCGIWNAME, so
orinoco_ioctl_getname is removed.
Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/cfg.h')
-rw-r--r-- | drivers/net/wireless/orinoco/cfg.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/orinoco/cfg.h b/drivers/net/wireless/orinoco/cfg.h new file mode 100644 index 000000000000..3ddc96a06cd7 --- /dev/null +++ b/drivers/net/wireless/orinoco/cfg.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* cfg80211 support. | ||
2 | * | ||
3 | * See copyright notice in main.c | ||
4 | */ | ||
5 | #ifndef ORINOCO_CFG_H | ||
6 | #define ORINOCO_CFG_H | ||
7 | |||
8 | #include <net/cfg80211.h> | ||
9 | |||
10 | extern const struct cfg80211_ops orinoco_cfg_ops; | ||
11 | |||
12 | void orinoco_wiphy_init(struct wiphy *wiphy); | ||
13 | int orinoco_wiphy_register(struct wiphy *wiphy); | ||
14 | |||
15 | #endif /* ORINOCO_CFG_H */ | ||