All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: driverdev-devel@linuxdriverproject.org
Cc: Wolfram Sang <wsa@the-dreams.de>
Subject: [PATCH 8/9] staging: ks7010: report interface as wlan not eth
Date: Fri, 17 Jun 2016 10:46:59 +0200	[thread overview]
Message-ID: <1466153220-2562-9-git-send-email-wsa@the-dreams.de> (raw)
In-Reply-To: <1466153220-2562-1-git-send-email-wsa@the-dreams.de>

Until we switch to cfg80211 (if ever), we must do this manually.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/staging/ks7010/ks7010_sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index c3035b80dac7cd..b7337fd813d59d 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -1033,7 +1033,7 @@ static int ks7010_sdio_probe(struct sdio_func *func,
 		printk(KERN_ERR "ks7010 : Unable to alloc new net device\n");
 		goto error_release_irq;
 	}
-	if (dev_alloc_name(netdev, netdev->name) < 0) {
+	if (dev_alloc_name(netdev, "wlan%d") < 0) {
 		printk(KERN_ERR "ks7010 :  Couldn't get name!\n");
 		goto error_free_netdev;
 	}
-- 
2.8.1

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

  parent reply	other threads:[~2016-06-17  8:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-17  8:46 [PATCH 0/9] staging: ks7010: cleanups Wolfram Sang
2016-06-17  8:46 ` [PATCH 1/9] staging: ks7010: remove cfg file handling Wolfram Sang
2016-06-17  8:46 ` [PATCH 2/9] staging: ks7010: function declaration should be in a header file Wolfram Sang
2016-06-17  8:46 ` [PATCH 3/9] staging: ks7010: collect all includes and sort them Wolfram Sang
2016-06-17  8:46 ` [PATCH 4/9] staging: ks7010: export sdio ids Wolfram Sang
2016-06-17  8:46 ` [PATCH 5/9] staging: ks7010: unify naming to ks7010 Wolfram Sang
2016-06-17  8:46 ` [PATCH 6/9] staging: ks7010: sdio: remove forward declarations Wolfram Sang
2016-06-17  8:46 ` [PATCH 7/9] staging: ks7010: bail out when registering netdevice fails Wolfram Sang
2016-06-17  8:46 ` Wolfram Sang [this message]
2016-06-17  8:47 ` [PATCH 9/9] staging: ks7010: drop private handler for driver version Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1466153220-2562-9-git-send-email-wsa@the-dreams.de \
    --to=wsa@the-dreams.de \
    --cc=driverdev-devel@linuxdriverproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.