* rtl8180: the network interface is not anymore created
@ 2008-12-21 16:10 Fabio Rossi
2008-12-21 18:04 ` Larry Finger
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Rossi @ 2008-12-21 16:10 UTC (permalink / raw)
To: linux-wireless; +Cc: linville, johannes
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.
Regards,
Fabio
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8180: the network interface is not anymore created
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
0 siblings, 2 replies; 4+ messages in thread
From: Larry Finger @ 2008-12-21 18:04 UTC (permalink / raw)
To: Fabio Rossi; +Cc: linux-wireless, linville, johannes
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
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;
[-- Attachment #2: rtl8180_STA_init --]
[-- Type: text/plain, Size: 569 bytes --]
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;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8180: the network interface is not anymore created
2008-12-21 18:04 ` Larry Finger
@ 2008-12-21 21:14 ` Piter PUNK
2008-12-22 8:52 ` Fabio Rossi
1 sibling, 0 replies; 4+ messages in thread
From: Piter PUNK @ 2008-12-21 21:14 UTC (permalink / raw)
To: Larry Finger; +Cc: Fabio Rossi, linux-wireless, linville, johannes
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.
>
> Fabio,
>
> Does this patch fix it for you?
I was with the same problem using linville branch (to test rtl8187se
support). I thought the wlan0 missing was some problem with the
rtl8187se support.
I apply the patch and now I have an wlan0 interface! -:)
I can't see now if the interface is really working, no AP near
to test. But the wlan0 now is created
> 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;
Thanks!
Piter PUNK
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: rtl8180: the network interface is not anymore created
2008-12-21 18:04 ` Larry Finger
2008-12-21 21:14 ` Piter PUNK
@ 2008-12-22 8:52 ` Fabio Rossi
1 sibling, 0 replies; 4+ messages in thread
From: Fabio Rossi @ 2008-12-22 8:52 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-wireless, linville, johannes
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;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-22 8:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).