Bug 33352
Summary: | r8712u wlan driver cannot be configured with wireless_tools/iwconfig(8) | ||
---|---|---|---|
Product: | Drivers | Reporter: | clemens fischer (ino-news) |
Component: | network-wireless | Assignee: | Larry Finger (Larry.Finger) |
Status: | CLOSED INVALID | ||
Severity: | high | CC: | greg, Larry.Finger, linville |
Priority: | P1 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.37.x and 2.6.38.x all versions | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: | Patch to add rtl8192su driver |
Description
clemens fischer
2011-04-15 21:58:21 UTC
This is not a regression. The driver you used previously was not in the kernel. I don't know the details, but it must have been supplied by your distro. The code to generate beacons in r8712u is not present, thus it cannot handle ad-hoc or AP mode. It could be added, but the effort for a driver that does not use mac80211 does not seem to be warranted. The fact that the driver incorporates its own MAC layer is the reason it is in staging with the accompanying warning. Writing a mac80211-based driver for the RTL8192SU devices is on my list of things to do, but it does not have a high priority. At the moment, I'm trying to get drivers for two PCI devices into the kernel. One of them is for the RTL8192SE, thus a lot of the code will be common. If you must use ad-hoc mode, then you will need to find the sources for that other driver and build it yourself. Sorry, but that is the best I can suggest. > This is not a regression. The driver you used previously was not in the > kernel. I don't know the details, but it must have been supplied by > your distro. I don't understand: $ locate -i rtl8192 ... /rest/no-backup/usr/src/linux-2.6.36.y.git/drivers/staging/rtl8192su/Kconfig /rest/no-backup/usr/src/linux-2.6.36.y.git/drivers/staging/rtl8192su/Makefile ... /rest/no-backup/usr/src/linux-2.6.37.y/drivers/staging/rtl8192u/Kconfig /rest/no-backup/usr/src/linux-2.6.37.y/drivers/staging/rtl8192u/Makefile ... /rest/no-backup/usr/src/linux-2.6.38.y/drivers/staging/rtl8192u/Kconfig /rest/no-backup/usr/src/linux-2.6.38.y/drivers/staging/rtl8192u/Makefile ... /rest/no-backup/usr/src/linux-torvalds-2.6.git/drivers/staging/rtl8192u/Kconfig /rest/no-backup/usr/src/linux-torvalds-2.6.git/drivers/staging/rtl8192u/Makefile ... AFAICS the driver may have changed name, and I meantioned this. > Writing a mac80211-based driver for the RTL8192SU devices is on my list > of things to do, but it does not have a high priority. At the moment, > I'm trying to get drivers for two PCI devices into the kernel. One of > them is for the RTL8192SE, thus a lot of the code will be common. Does this mean a driver for RTL8192SU is in the foreseeable future? I had already contacted "Realtek" months ago, but it was a pain to get source, and I wouldn't want to do this again for every new linux version, because the developer seemed reluctant to help and didn't answer followup questions. The alternative would be to pick my own (shallow) pocket again and buy some other preferably USB-connected wlan device allowing at least ad-hoc mode. Do you know of a resource matching products and in-kernel linux drivers? --clemens fischer Created attachment 54762 [details]
Patch to add rtl8192su driver
My only previous contact with this driver was an E-mail that I got when it was deleted and I had forgotten about that.
I took the driver source from 2.6.36 and converted it into a patch that can be added to the source for any 2.6.37, 38, or 39 kernel.
Good luck with this one.
> I took the driver source from 2.6.36 and converted it into a patch that
> can be added to the source for any 2.6.37, 38, or 39 kernel.
Thanks, that really helps! It is unfortunate that this driver is the
only one allowing IBSS/ad-hoc mode for my device. --clemens fischer
For the benefit of new readers and with skill levels similiar to mine, here's what you have to do: - save the patch to <patch-location> - gunzip <patch-location> - cd to the linux kernel source <optional, with source from git> - git co -b wlan-old-rtl8192su origin/master </optional> - patch -p1 < <patch-location> The patch applies cleanly and a new driver appears in drivers/staging/rtl8192su/, it is the old one from 2.6.36. <optional> - git add drivers/staging/rtl8192su/ - git ci -a -m '[a] re-add old wlan driver rtl8192su' </optional> - configure as usual. The menu entry for rtl8192su is "RealTek RTL8192SU Wireless LAN NIC driver" in drivers/staging, works builtin or as a module. - make and install as usual. - add the following entry to /etc/modprobe.d/modprobe.conf blacklist r8712u This prohibits the r8712u driver from attaching to the USB wlan device. Mine has USB-ID 0BDA:8172 "Realtek Semiconductor Corp. RTL8191S WLAN Adapter". This is all I had to do, after reboot udevd(8) attaches the old driver and the wlan stick is ready for use. --clemens fischer |