diff options
author | David S. Miller <davem@davemloft.net> | 2010-03-22 21:15:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-22 21:15:15 -0400 |
commit | 33e2bf6aa16061bae1253514e7c32af27d2b4b31 (patch) | |
tree | 652d13b4feea9a8f562186e7badae72d2e22fe1f /drivers/net/wireless/ipw2x00 | |
parent | e880eb6c5c9d98e389ffc0d8947f75d70785361a (diff) | |
parent | 819bfecc4fc6b6e5a793f719a45b7146ce423b79 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wireless/ath/ath5k/phy.c
Diffstat (limited to 'drivers/net/wireless/ipw2x00')
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2100.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw.h | 14 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_module.c | 13 |
4 files changed, 27 insertions, 28 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 9b72c45a7748..fe63bf21c67e 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
@@ -6102,7 +6102,7 @@ static const struct net_device_ops ipw2100_netdev_ops = { | |||
6102 | .ndo_validate_addr = eth_validate_addr, | 6102 | .ndo_validate_addr = eth_validate_addr, |
6103 | }; | 6103 | }; |
6104 | 6104 | ||
6105 | /* Look into using netdev destructor to shutdown ieee80211? */ | 6105 | /* Look into using netdev destructor to shutdown libipw? */ |
6106 | 6106 | ||
6107 | static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev, | 6107 | static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev, |
6108 | void __iomem * base_addr, | 6108 | void __iomem * base_addr, |
@@ -6112,7 +6112,7 @@ static struct net_device *ipw2100_alloc_device(struct pci_dev *pci_dev, | |||
6112 | struct ipw2100_priv *priv; | 6112 | struct ipw2100_priv *priv; |
6113 | struct net_device *dev; | 6113 | struct net_device *dev; |
6114 | 6114 | ||
6115 | dev = alloc_ieee80211(sizeof(struct ipw2100_priv), 0); | 6115 | dev = alloc_libipw(sizeof(struct ipw2100_priv), 0); |
6116 | if (!dev) | 6116 | if (!dev) |
6117 | return NULL; | 6117 | return NULL; |
6118 | priv = libipw_priv(dev); | 6118 | priv = libipw_priv(dev); |
@@ -6425,7 +6425,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev, | |||
6425 | sysfs_remove_group(&pci_dev->dev.kobj, | 6425 | sysfs_remove_group(&pci_dev->dev.kobj, |
6426 | &ipw2100_attribute_group); | 6426 | &ipw2100_attribute_group); |
6427 | 6427 | ||
6428 | free_ieee80211(dev, 0); | 6428 | free_libipw(dev, 0); |
6429 | pci_set_drvdata(pci_dev, NULL); | 6429 | pci_set_drvdata(pci_dev, NULL); |
6430 | } | 6430 | } |
6431 | 6431 | ||
@@ -6483,10 +6483,10 @@ static void __devexit ipw2100_pci_remove_one(struct pci_dev *pci_dev) | |||
6483 | if (dev->base_addr) | 6483 | if (dev->base_addr) |
6484 | iounmap((void __iomem *)dev->base_addr); | 6484 | iounmap((void __iomem *)dev->base_addr); |
6485 | 6485 | ||
6486 | /* wiphy_unregister needs to be here, before free_ieee80211 */ | 6486 | /* wiphy_unregister needs to be here, before free_libipw */ |
6487 | wiphy_unregister(priv->ieee->wdev.wiphy); | 6487 | wiphy_unregister(priv->ieee->wdev.wiphy); |
6488 | kfree(priv->ieee->bg_band.channels); | 6488 | kfree(priv->ieee->bg_band.channels); |
6489 | free_ieee80211(dev, 0); | 6489 | free_libipw(dev, 0); |
6490 | } | 6490 | } |
6491 | 6491 | ||
6492 | pci_release_regions(pci_dev); | 6492 | pci_release_regions(pci_dev); |
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 5c7aa1b1eb56..6dc0733df46b 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -11666,7 +11666,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) | |||
11666 | if (priv->prom_net_dev) | 11666 | if (priv->prom_net_dev) |
11667 | return -EPERM; | 11667 | return -EPERM; |
11668 | 11668 | ||
11669 | priv->prom_net_dev = alloc_ieee80211(sizeof(struct ipw_prom_priv), 1); | 11669 | priv->prom_net_dev = alloc_libipw(sizeof(struct ipw_prom_priv), 1); |
11670 | if (priv->prom_net_dev == NULL) | 11670 | if (priv->prom_net_dev == NULL) |
11671 | return -ENOMEM; | 11671 | return -ENOMEM; |
11672 | 11672 | ||
@@ -11685,7 +11685,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) | |||
11685 | 11685 | ||
11686 | rc = register_netdev(priv->prom_net_dev); | 11686 | rc = register_netdev(priv->prom_net_dev); |
11687 | if (rc) { | 11687 | if (rc) { |
11688 | free_ieee80211(priv->prom_net_dev, 1); | 11688 | free_libipw(priv->prom_net_dev, 1); |
11689 | priv->prom_net_dev = NULL; | 11689 | priv->prom_net_dev = NULL; |
11690 | return rc; | 11690 | return rc; |
11691 | } | 11691 | } |
@@ -11699,7 +11699,7 @@ static void ipw_prom_free(struct ipw_priv *priv) | |||
11699 | return; | 11699 | return; |
11700 | 11700 | ||
11701 | unregister_netdev(priv->prom_net_dev); | 11701 | unregister_netdev(priv->prom_net_dev); |
11702 | free_ieee80211(priv->prom_net_dev, 1); | 11702 | free_libipw(priv->prom_net_dev, 1); |
11703 | 11703 | ||
11704 | priv->prom_net_dev = NULL; | 11704 | priv->prom_net_dev = NULL; |
11705 | } | 11705 | } |
@@ -11727,7 +11727,7 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11727 | struct ipw_priv *priv; | 11727 | struct ipw_priv *priv; |
11728 | int i; | 11728 | int i; |
11729 | 11729 | ||
11730 | net_dev = alloc_ieee80211(sizeof(struct ipw_priv), 0); | 11730 | net_dev = alloc_libipw(sizeof(struct ipw_priv), 0); |
11731 | if (net_dev == NULL) { | 11731 | if (net_dev == NULL) { |
11732 | err = -ENOMEM; | 11732 | err = -ENOMEM; |
11733 | goto out; | 11733 | goto out; |
@@ -11747,7 +11747,7 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11747 | mutex_init(&priv->mutex); | 11747 | mutex_init(&priv->mutex); |
11748 | if (pci_enable_device(pdev)) { | 11748 | if (pci_enable_device(pdev)) { |
11749 | err = -ENODEV; | 11749 | err = -ENODEV; |
11750 | goto out_free_ieee80211; | 11750 | goto out_free_libipw; |
11751 | } | 11751 | } |
11752 | 11752 | ||
11753 | pci_set_master(pdev); | 11753 | pci_set_master(pdev); |
@@ -11874,8 +11874,8 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11874 | out_pci_disable_device: | 11874 | out_pci_disable_device: |
11875 | pci_disable_device(pdev); | 11875 | pci_disable_device(pdev); |
11876 | pci_set_drvdata(pdev, NULL); | 11876 | pci_set_drvdata(pdev, NULL); |
11877 | out_free_ieee80211: | 11877 | out_free_libipw: |
11878 | free_ieee80211(priv->net_dev, 0); | 11878 | free_libipw(priv->net_dev, 0); |
11879 | out: | 11879 | out: |
11880 | return err; | 11880 | return err; |
11881 | } | 11881 | } |
@@ -11942,11 +11942,11 @@ static void __devexit ipw_pci_remove(struct pci_dev *pdev) | |||
11942 | pci_release_regions(pdev); | 11942 | pci_release_regions(pdev); |
11943 | pci_disable_device(pdev); | 11943 | pci_disable_device(pdev); |
11944 | pci_set_drvdata(pdev, NULL); | 11944 | pci_set_drvdata(pdev, NULL); |
11945 | /* wiphy_unregister needs to be here, before free_ieee80211 */ | 11945 | /* wiphy_unregister needs to be here, before free_libipw */ |
11946 | wiphy_unregister(priv->ieee->wdev.wiphy); | 11946 | wiphy_unregister(priv->ieee->wdev.wiphy); |
11947 | kfree(priv->ieee->a_band.channels); | 11947 | kfree(priv->ieee->a_band.channels); |
11948 | kfree(priv->ieee->bg_band.channels); | 11948 | kfree(priv->ieee->bg_band.channels); |
11949 | free_ieee80211(priv->net_dev, 0); | 11949 | free_libipw(priv->net_dev, 0); |
11950 | free_firmware(); | 11950 | free_firmware(); |
11951 | } | 11951 | } |
11952 | 11952 | ||
diff --git a/drivers/net/wireless/ipw2x00/libipw.h b/drivers/net/wireless/ipw2x00/libipw.h index a6d5e42647e4..284b0e4cb815 100644 --- a/drivers/net/wireless/ipw2x00/libipw.h +++ b/drivers/net/wireless/ipw2x00/libipw.h | |||
@@ -64,7 +64,7 @@ | |||
64 | extern u32 libipw_debug_level; | 64 | extern u32 libipw_debug_level; |
65 | #define LIBIPW_DEBUG(level, fmt, args...) \ | 65 | #define LIBIPW_DEBUG(level, fmt, args...) \ |
66 | do { if (libipw_debug_level & (level)) \ | 66 | do { if (libipw_debug_level & (level)) \ |
67 | printk(KERN_DEBUG "ieee80211: %c %s " fmt, \ | 67 | printk(KERN_DEBUG "libipw: %c %s " fmt, \ |
68 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) | 68 | in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0) |
69 | static inline bool libipw_ratelimit_debug(u32 level) | 69 | static inline bool libipw_ratelimit_debug(u32 level) |
70 | { | 70 | { |
@@ -116,8 +116,8 @@ static inline bool libipw_ratelimit_debug(u32 level) | |||
116 | #define LIBIPW_DL_RX (1<<9) | 116 | #define LIBIPW_DL_RX (1<<9) |
117 | #define LIBIPW_DL_QOS (1<<31) | 117 | #define LIBIPW_DL_QOS (1<<31) |
118 | 118 | ||
119 | #define LIBIPW_ERROR(f, a...) printk(KERN_ERR "ieee80211: " f, ## a) | 119 | #define LIBIPW_ERROR(f, a...) printk(KERN_ERR "libipw: " f, ## a) |
120 | #define LIBIPW_WARNING(f, a...) printk(KERN_WARNING "ieee80211: " f, ## a) | 120 | #define LIBIPW_WARNING(f, a...) printk(KERN_WARNING "libipw: " f, ## a) |
121 | #define LIBIPW_DEBUG_INFO(f, a...) LIBIPW_DEBUG(LIBIPW_DL_INFO, f, ## a) | 121 | #define LIBIPW_DEBUG_INFO(f, a...) LIBIPW_DEBUG(LIBIPW_DL_INFO, f, ## a) |
122 | 122 | ||
123 | #define LIBIPW_DEBUG_WX(f, a...) LIBIPW_DEBUG(LIBIPW_DL_WX, f, ## a) | 123 | #define LIBIPW_DEBUG_WX(f, a...) LIBIPW_DEBUG(LIBIPW_DL_WX, f, ## a) |
@@ -905,7 +905,7 @@ struct libipw_device { | |||
905 | struct libipw_reassoc_request * req); | 905 | struct libipw_reassoc_request * req); |
906 | 906 | ||
907 | /* This must be the last item so that it points to the data | 907 | /* This must be the last item so that it points to the data |
908 | * allocated beyond this structure by alloc_ieee80211 */ | 908 | * allocated beyond this structure by alloc_libipw */ |
909 | u8 priv[0]; | 909 | u8 priv[0]; |
910 | }; | 910 | }; |
911 | 911 | ||
@@ -1017,9 +1017,9 @@ static inline int libipw_is_cck_rate(u8 rate) | |||
1017 | return 0; | 1017 | return 0; |
1018 | } | 1018 | } |
1019 | 1019 | ||
1020 | /* ieee80211.c */ | 1020 | /* libipw.c */ |
1021 | extern void free_ieee80211(struct net_device *dev, int monitor); | 1021 | extern void free_libipw(struct net_device *dev, int monitor); |
1022 | extern struct net_device *alloc_ieee80211(int sizeof_priv, int monitor); | 1022 | extern struct net_device *alloc_libipw(int sizeof_priv, int monitor); |
1023 | extern int libipw_change_mtu(struct net_device *dev, int new_mtu); | 1023 | extern int libipw_change_mtu(struct net_device *dev, int new_mtu); |
1024 | 1024 | ||
1025 | extern void libipw_networks_age(struct libipw_device *ieee, | 1025 | extern void libipw_networks_age(struct libipw_device *ieee, |
diff --git a/drivers/net/wireless/ipw2x00/libipw_module.c b/drivers/net/wireless/ipw2x00/libipw_module.c index 2fa55867bd8b..55965408ff3f 100644 --- a/drivers/net/wireless/ipw2x00/libipw_module.c +++ b/drivers/net/wireless/ipw2x00/libipw_module.c | |||
@@ -53,7 +53,7 @@ | |||
53 | #include "libipw.h" | 53 | #include "libipw.h" |
54 | 54 | ||
55 | #define DRV_DESCRIPTION "802.11 data/management/control stack" | 55 | #define DRV_DESCRIPTION "802.11 data/management/control stack" |
56 | #define DRV_NAME "ieee80211" | 56 | #define DRV_NAME "libipw" |
57 | #define DRV_VERSION LIBIPW_VERSION | 57 | #define DRV_VERSION LIBIPW_VERSION |
58 | #define DRV_COPYRIGHT "Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>" | 58 | #define DRV_COPYRIGHT "Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>" |
59 | 59 | ||
@@ -140,7 +140,7 @@ int libipw_change_mtu(struct net_device *dev, int new_mtu) | |||
140 | } | 140 | } |
141 | EXPORT_SYMBOL(libipw_change_mtu); | 141 | EXPORT_SYMBOL(libipw_change_mtu); |
142 | 142 | ||
143 | struct net_device *alloc_ieee80211(int sizeof_priv, int monitor) | 143 | struct net_device *alloc_libipw(int sizeof_priv, int monitor) |
144 | { | 144 | { |
145 | struct libipw_device *ieee; | 145 | struct libipw_device *ieee; |
146 | struct net_device *dev; | 146 | struct net_device *dev; |
@@ -222,8 +222,9 @@ failed_free_netdev: | |||
222 | failed: | 222 | failed: |
223 | return NULL; | 223 | return NULL; |
224 | } | 224 | } |
225 | EXPORT_SYMBOL(alloc_libipw); | ||
225 | 226 | ||
226 | void free_ieee80211(struct net_device *dev, int monitor) | 227 | void free_libipw(struct net_device *dev, int monitor) |
227 | { | 228 | { |
228 | struct libipw_device *ieee = netdev_priv(dev); | 229 | struct libipw_device *ieee = netdev_priv(dev); |
229 | 230 | ||
@@ -237,6 +238,7 @@ void free_ieee80211(struct net_device *dev, int monitor) | |||
237 | 238 | ||
238 | free_netdev(dev); | 239 | free_netdev(dev); |
239 | } | 240 | } |
241 | EXPORT_SYMBOL(free_libipw); | ||
240 | 242 | ||
241 | #ifdef CONFIG_LIBIPW_DEBUG | 243 | #ifdef CONFIG_LIBIPW_DEBUG |
242 | 244 | ||
@@ -291,7 +293,7 @@ static int __init libipw_init(void) | |||
291 | struct proc_dir_entry *e; | 293 | struct proc_dir_entry *e; |
292 | 294 | ||
293 | libipw_debug_level = debug; | 295 | libipw_debug_level = debug; |
294 | libipw_proc = proc_mkdir(DRV_NAME, init_net.proc_net); | 296 | libipw_proc = proc_mkdir("ieee80211", init_net.proc_net); |
295 | if (libipw_proc == NULL) { | 297 | if (libipw_proc == NULL) { |
296 | LIBIPW_ERROR("Unable to create " DRV_NAME | 298 | LIBIPW_ERROR("Unable to create " DRV_NAME |
297 | " proc directory\n"); | 299 | " proc directory\n"); |
@@ -331,6 +333,3 @@ MODULE_PARM_DESC(debug, "debug output mask"); | |||
331 | 333 | ||
332 | module_exit(libipw_exit); | 334 | module_exit(libipw_exit); |
333 | module_init(libipw_init); | 335 | module_init(libipw_init); |
334 | |||
335 | EXPORT_SYMBOL(alloc_ieee80211); | ||
336 | EXPORT_SYMBOL(free_ieee80211); | ||