rtl8180: the network interface is not anymore created
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
Quoted 7 lines · Fabio Rossi
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 bitNL80211_IFTYPE_STATIONis not set during the hardware initialization.
Quoted 5 lines
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.cbut I don't know which is the right point to do so.
Fabio,
Does this patch fix it for you?
Larry
drivers/net/wireless/rtl818x/rtl8180_dev.c +1 -0
@@ -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 ;
drivers/net/wireless/rtl818x/rtl8180_dev.c +1 -0
@@ -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 ;
Quoted 6 lines · Larry Finger
Quoted 1 line · Fabio Rossi
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
drivers/net/wireless/rtl818x/rtl8180_dev.c static int __devinit rtl8180_probe(struc · line 903
Quoted 11 lines
Index:
wireless-testing/drivers/net/wireless/rtl818x/rtl8180_dev.c
===================================================================drivers/net/wireless/rtl818x/rtl8180_dev.c +1
-0@@ -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
Thanks Larry, now it works again!
Fabio
Quoted 33 lines · Larry Finger
Quoted 7 lines · Fabio Rossi
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 bitNL80211_IFTYPE_STATIONis not set during the hardware initialization.Quoted 7 lines
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.cbut 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
===================================================================drivers/net/wireless/rtl818x/rtl8180_dev.c +1
-0@@ -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 ;