2012-02-07 05:26:26

by Ali Bahar

[permalink] [raw]
Subject: Re: drivers realtek rtl8191su [rtl8712 ]

Hi dganic,


On Mon, Feb 06, 2012 at 09:17:33PM +0300, [email protected] wrote:
> Subject: drivers realtek rtl8191su [rtl8712 ]
>
> Good day, https://github.com/torvalds/linux/blob/master/drivers/staging/rtl8712/TODO,
> there indicated that in a short time you make a "switch to use
> MAC80211" and as what about "nl80211" I want to do from wi fi card,
> access point, by means of hostapd, but in this implementation, the
> driver who is at the core, this is impossible, in which release of
> the kernel will be implemented this functionality the driver?

Yes, I was the one who had volunteered to try the implementation. But,
unfortunately, I can't work on this driver anymore; I stopped in
September. So, as far as I know, this is not going to happen anytime
soon.

regards,
ali


>
>
> A little more information:
>
> [htpc@dga-htpc ~]$ lsmod
> Module Size Used by
> appletalk 26298 0
> ipx 20395 0
> p8022 1171 1 ipx
> psnap 1973 2 appletalk,ipx
> llc 3761 2 p8022,psnap
> p8023 1068 1 ipx
> ipv6 290983 16
> nvidia 11695959 40
> snd_hda_codec_hdmi 22092 4
> iTCO_wdt 12717 0
> snd_hda_intel 22122 1
> r8712u 169296 0
> iTCO_vendor_support 1929 1 iTCO_wdt
> snd_hda_codec 77927 2 snd_hda_codec_hdmi,snd_hda_
> intel
> joydev 9895 1
> usbhid 35256 0
> hid 81635 1 usbhid
> pcspkr 1819 0
> evdev 9530 4
> snd_hwdep 6325 1 snd_hda_codec
> i2c_i801 8187 0
> psmouse 55192 0
> intel_agp 10904 0
> intel_gtt 14423 1 intel_agp
> snd_pcm 73952 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
> r8169 42643 0
> mii 3995 1 r8169
> serio_raw 4294 0
> processor 24256 0
> snd_timer 19416 1 snd_pcm
> i2c_core 20133 2 nvidia,i2c_i801
> snd 57818 7 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
> soundcore 6146 1 snd
> snd_page_alloc 7121 2 snd_hda_intel,snd_pcm
> button 4470 0
> ext4 370462 1
> mbcache 5817 1 ext4
> jbd2 71074 1 ext4
> crc16 1297 1 ext4
> sd_mod 28307 2
> uhci_hcd 23084 0
> ahci 21217 1
> libahci 18885 1 ahci
> libata 173297 2 ahci,libahci
> scsi_mod 131546 2 sd_mod,libata
> ehci_hcd 39543 0
> usbcore 142576 5 r8712u,usbhid,uhci_hcd,ehci_hcd
>
> /etc/hostapd/hostapd.conf:
>
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> #ctrl_interface=/var/run/hostapd
> #ctrl_interface_group=0
> ssid=dganic-htpc
> country_code=RU
> hw_mode=g
> channel=11
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> wpa=2
> wpa_passphrase=50177011aa
> wpa_pairwise=TKIP CCMP
> rsn_pairwise=CCMP
>
> [htpc@dga-htpc ~]$ sudo hostapd -dd /etc/hostapd/hostapd.conf
> Configuration file: /etc/hostapd/hostapd.conf
> nl80211: 'nl80211' generic netlink not found
> nl80211 driver initialization failed.
>
> Thank you in advance for your reply, I hope for your support, sorry
> for the very poor English.


2012-02-07 17:22:26

by Larry Finger

[permalink] [raw]
Subject: Re: drivers realtek rtl8191su [rtl8712 ]

On 02/07/2012 10:53 AM, [email protected] wrote:
> Thank you Ali for your reply email. One can wonder why you continue to develop
> this driver, and still the most interesting place: (Maybe you can help me by
> passing this information in any other developer in a position to write the full
> realization of this driver? The average user like me, they are unlikely to be
> listen, and you as the developer will have to listen. Perhaps you have the
> opportunity to publish this information in the Linux kernel mailing list or
> linuxdrivers.org? or have any contacts who can I turn? itself does not implement
> realtek drivers for their devices under Linux?

Alexander,

I am not quite sure what you are asking, but let me explain the situation as I
understand it.

There is a Linux driver for the RTL8191SU devices. It is in the staging sub-tree
and is called r8712u. This driver has been available since kernel 2.6.37. It is
stable, and handles the HT rates quite well. The one thing it does not do is
work as an AP. It cannot be used with hostapd. The reason is that modern
versions of hostapd use the features of mac80211 through the nl80211 interface,
but r8712u has its own IEEE802.11 stack and does not implement mac80211.

The ultimate fix will be to rewrite the driver to utilize mac80211, which will
be a major undertaking. It is on my TODO list, but it has low priority. Realtek
does not plan to do that rewrite, thus it will be up to the community.

I hope this message helps you understand what is happening.

Larry

2012-02-08 01:58:49

by Ali Bahar

[permalink] [raw]
Subject: Re: drivers realtek rtl8191su [rtl8712 ]

Hi Alexander,


On Tue, Feb 07, 2012 at 07:53:44PM +0300, [email protected] wrote:
> Thank you Ali for your reply email. One can wonder why you continue
> to develop this driver, and still the most interesting place: (Maybe

as you have figured out by now, Larry Finger is the main guy for this
driver, not me. I just submitted a few patches this past summer.


> you can help me by passing this information in any other developer
> in a position to write the full realization of this driver? The
> average user like me, they are unlikely to be listen, and you as the
> developer will have to listen. Perhaps you have the opportunity to
> publish this information in the Linux kernel mailing list or
> linuxdrivers.org? or have any contacts who can I turn? itself does

Larry and the linux-wireless list were CCed in my original reply. When
you have issues, you can directly email the list yourself.

take care,
ali



> not implement realtek drivers for their devices under Linux?
>
> with respect, Alexander Anishchenko
>
> On Tue, 7 Feb 2012 10:08:37 +0800
> Ali Bahar <[email protected]> wrote:
> Hi dganic,
> On Mon, Feb 06, 2012 at 09:17:33PM +0300, [email protected] wrote:
> >Subject: drivers realtek rtl8191su [rtl8712 ]
> >
> >Good day, https://github.com/torvalds/linux/blob/master/drivers/staging/rtl8712/TODO,
> >there indicated that in a short time you make a "switch to use
> >MAC80211" and as what about "nl80211" I want to do from wi fi card,
> >access point, by means of hostapd, but in this implementation, the
> >driver who is at the core, this is impossible, in which release of
> >the kernel will be implemented this functionality the driver?
> Yes, I was the one who had volunteered to try the implementation.
> But,
> unfortunately, I can't work on this driver anymore; I stopped in
> September. So, as far as I know, this is not going to happen anytime
> soon.
> regards,
> ali

2012-02-07 16:58:49

by dganic

[permalink] [raw]
Subject: Re: drivers realtek rtl8191su [rtl8712 ]

Thank you Ali for your reply email. One can wonder why you continue to
develop this driver, and still the most interesting place: (Maybe you
can help me by passing this information in any other developer in a
position to write the full realization of this driver? The average
user like me, they are unlikely to be listen, and you as the developer
will have to listen. Perhaps you have the opportunity to publish this
information in the Linux kernel mailing list or linuxdrivers.org? or
have any contacts who can I turn? itself does not implement realtek
drivers for their devices under Linux?

with respect, Alexander Anishchenko

On Tue, 7 Feb 2012 10:08:37 +0800
Ali Bahar <[email protected]> wrote:
Hi dganic,


On Mon, Feb 06, 2012 at 09:17:33PM +0300, [email protected] wrote:
> Subject: drivers realtek rtl8191su [rtl8712 ]
>
> Good day,
>https://github.com/torvalds/linux/blob/master/drivers/staging/rtl8712/TODO,
> there indicated that in a short time you make a "switch to use
> MAC80211" and as what about "nl80211" I want to do from wi fi card,
> access point, by means of hostapd, but in this implementation, the
> driver who is at the core, this is impossible, in which release of
> the kernel will be implemented this functionality the driver?

Yes, I was the one who had volunteered to try the implementation.
But,
unfortunately, I can't work on this driver anymore; I stopped in
September. So, as far as I know, this is not going to happen anytime
soon.

regards,
ali


>
>
> A little more information:
>
> [htpc@dga-htpc ~]$ lsmod
> Module Size Used by
> appletalk 26298 0
> ipx 20395 0
> p8022 1171 1 ipx
> psnap 1973 2 appletalk,ipx
> llc 3761 2 p8022,psnap
> p8023 1068 1 ipx
> ipv6 290983 16
> nvidia 11695959 40
> snd_hda_codec_hdmi 22092 4
> iTCO_wdt 12717 0
> snd_hda_intel 22122 1
> r8712u 169296 0
> iTCO_vendor_support 1929 1 iTCO_wdt
> snd_hda_codec 77927 2 snd_hda_codec_hdmi,snd_hda_
> intel
> joydev 9895 1
> usbhid 35256 0
> hid 81635 1 usbhid
> pcspkr 1819 0
> evdev 9530 4
> snd_hwdep 6325 1 snd_hda_codec
> i2c_i801 8187 0
> psmouse 55192 0
> intel_agp 10904 0
> intel_gtt 14423 1 intel_agp
> snd_pcm 73952 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
> r8169 42643 0
> mii 3995 1 r8169
> serio_raw 4294 0
> processor 24256 0
> snd_timer 19416 1 snd_pcm
> i2c_core 20133 2 nvidia,i2c_i801
> snd 57818 7
>snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
> soundcore 6146 1 snd
> snd_page_alloc 7121 2 snd_hda_intel,snd_pcm
> button 4470 0
> ext4 370462 1
> mbcache 5817 1 ext4
> jbd2 71074 1 ext4
> crc16 1297 1 ext4
> sd_mod 28307 2
> uhci_hcd 23084 0
> ahci 21217 1
> libahci 18885 1 ahci
> libata 173297 2 ahci,libahci
> scsi_mod 131546 2 sd_mod,libata
> ehci_hcd 39543 0
> usbcore 142576 5 r8712u,usbhid,uhci_hcd,ehci_hcd
>
> /etc/hostapd/hostapd.conf:
>
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> #ctrl_interface=/var/run/hostapd
> #ctrl_interface_group=0
> ssid=dganic-htpc
> country_code=RU
> hw_mode=g
> channel=11
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> wpa=2
> wpa_passphrase=50177011aa
> wpa_pairwise=TKIP CCMP
> rsn_pairwise=CCMP
>
> [htpc@dga-htpc ~]$ sudo hostapd -dd /etc/hostapd/hostapd.conf
> Configuration file: /etc/hostapd/hostapd.conf
> nl80211: 'nl80211' generic netlink not found
> nl80211 driver initialization failed.
>
> Thank you in advance for your reply, I hope for your support, sorry
> for the very poor English.