[3.5.y.z extended stable] Patch "prism54: set netdev type to "wlan"" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Fri Nov 29 14:03:18 UTC 2013

This is a note to let you know that I have just added a patch titled

    prism54: set netdev type to "wlan"

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:


If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



>From 5c28ff0c402e4758332fe0c187c01abb1a8cc49c Mon Sep 17 00:00:00 2001
From: Dan Williams <dcbw at redhat.com>
Date: Fri, 8 Nov 2013 13:39:44 -0600
Subject: prism54: set netdev type to "wlan"

commit 8e3ffa471091c560deb6738ed9ab7445b7a5fd04 upstream.

Userspace uses the netdev devtype for stuff like device naming and type
detection.  Be nice and set it.  Remove the pointless #if/#endif around

Signed-off-by: Dan Williams <dcbw at redhat.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
 drivers/net/wireless/prism54/islpci_dev.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/prism54/islpci_dev.c b/drivers/net/wireless/prism54/islpci_dev.c
index 5970ff6..d498b02 100644
--- a/drivers/net/wireless/prism54/islpci_dev.c
+++ b/drivers/net/wireless/prism54/islpci_dev.c
@@ -811,6 +811,10 @@ static const struct net_device_ops islpci_netdev_ops = {
 	.ndo_validate_addr	= eth_validate_addr,

+static struct device_type wlan_type = {
+	.name	= "wlan",
 struct net_device *
 islpci_setup(struct pci_dev *pdev)
@@ -821,9 +825,8 @@ islpci_setup(struct pci_dev *pdev)
 		return ndev;

 	pci_set_drvdata(pdev, ndev);
-#if defined(SET_NETDEV_DEV)
 	SET_NETDEV_DEV(ndev, &pdev->dev);
+	SET_NETDEV_DEVTYPE(ndev, &wlan_type);

 	/* setup the structure members */
 	ndev->base_addr = pci_resource_start(pdev, 0);

More information about the kernel-team mailing list