All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Rossi <rossi.f@inwind.it>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
	johannes@sipsolutions.net
Subject: Re: rtl8180: the network interface is not anymore created
Date: Mon, 22 Dec 2008 09:52:35 +0100	[thread overview]
Message-ID: <200812220952.36063.rossi.f@inwind.it> (raw)
In-Reply-To: <494E852E.4070002@lwfinger.net>

Thanks Larry, now it works again!

Fabio

On Sunday 21 December 2008, Larry Finger wrote:

> Fabio Rossi wrote:
> > I was using successfully the rtl8180 driver but after last git-pull the
> > network interface (wlan0) is not anymore created.
> >
> > I have discovered the problem: there has been a change in mac80211,
> > commit 3fc7826b95521e40cf53f63437a5fdcc24e54ac4. The problem is that the
> > bit NL80211_IFTYPE_STATION is not set during the hardware initialization.
> >
> > I guess that the problem might be solved inserting the following line of
> > code
> >
> >     dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
> >
> > somewhere in rtl8180_dev.c but I don't know which is the right point to
> > do so.
>
> Fabio,
>
> Does this patch fix it for you?
>
> Larry
>
> Index: wireless-testing/drivers/net/wireless/rtl818x/rtl8180_dev.c
> ===================================================================
> --- wireless-testing.orig/drivers/net/wireless/rtl818x/rtl8180_dev.c
> +++ wireless-testing/drivers/net/wireless/rtl818x/rtl8180_dev.c
> @@ -898,6 +898,7 @@ static int __devinit rtl8180_probe(struc
>  	dev->flags = IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING |
>  		     IEEE80211_HW_RX_INCLUDES_FCS |
>  		     IEEE80211_HW_SIGNAL_UNSPEC;
> +	dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
>  	dev->queues = 1;
>  	dev->max_signal = 65;



      parent reply	other threads:[~2008-12-22  8:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-21 16:10 rtl8180: the network interface is not anymore created Fabio Rossi
2008-12-21 18:04 ` Larry Finger
2008-12-21 21:14   ` Piter PUNK
2008-12-22  8:52   ` Fabio Rossi [this message]

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=200812220952.36063.rossi.f@inwind.it \
    --to=rossi.f@inwind.it \
    --cc=Larry.Finger@lwfinger.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /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.