[tlinux-users:08805] Re: TOSHIBA L40 REALTEK 8187B WLAN USB2 problem

Ekim Maurer-Engin <[email protected]> Wed, 23 Jan 2008 18:37:21 +0200
Newsgroups gmane.linux.hardware.toshiba
Message-ID <[email protected]>
I am not sure how ubuntu handles it - therefore here a more global
instruction. I made my card work with this (actually i am using it right
now :P).

you need ndiswrapper 1.50 or higher (I use 1.51) - obtainable via
http://ndiswrapper.sourceforge.net/joomla/ 
or the direct link to the tar.gz:
http://sourceforge.net/project/downloading.php?group_id=93482&use_mirror=kent&filename=ndiswrapper-1.51.tar.gz&67160862

untar - configure - make - make install (or use the package manager of
your choice if this packages are present for your Linux distribution.

get the realtek 8187B drivers only
ftp://202.65.194.212/cn/wlan/RTL8187B_driver_only.zip

unzip this

erease all ndiswrapper entries regarding card
root@camelot:~>  ndiswrapper -l
net8187b : [somemassage]
root@camelot:~>  ndiswrapper -r net8187b

reboot for a clean system (yes it can be done without - but no risk is
better)

talesin@camelot:~> lsusb

search for the devicenumber of your WLAN card, most probably this will
show so:
 
Bus 003 Device 002: ID 0bda:8197 Realtek Semiconductor Corp.

then get root and

root@camelot:~> ndiswrapper -i <path_to_win98_drivers>/net8187b.inf

root@camelot:~> ndiswrapper -a <device_id>  net8187b
 In my case it was: 
 root@camelot:~> ndiswrapper -a 0bda:8197 net8187b

root@camelot:~> ndiswrapper -m
root@camelot:~> modprobe ndiswrapper

reboot (maybe it is possible without - but  am just typing how i did it)

during boot you should see this:
ndiswrapper: driver net8187b (Realtek Semiconductor
Corp.,07/18/2007,5.1097.0718.2007) loaded
wlan0: ethernet device 00:16:44:1d:39:84 using NDIS driver: net8187b,
version: 0x1, NDIS version: 0x500, vendor: 'NDIS Network Adapter',
0BDA:8197.F.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK;
AES/CCMP with WPA, WPA2, WPA2PSK
usbcore: registered new interface driver ndiswrapper

when logged in again

talesin@camelot:~> ndiswrapper -l
net8187b : driver installed
        device (0BDA:8197) present (alternate driver: r8187)

do the foloowing only if this does not show up:

 Look at your /etc/modprobe.d/ndiswrapper

 you will see a single line,
 clone this line and modify the structre as follows:

 original /etc/modprobe.d/ndiswrapper:
 alias usb:v0BDAp8187d*dc*dsc*dp*ic*isc*ip* ndiswrapper

 modified /etc/modprobe.d/ndiswrapper:
 alias usb:v0BDAp8187d*dc*dsc*dp*ic*isc*ip* ndiswrapper
 alias usb:v0BDAp8189d*dc*dsc*dp*ic*isc*ip* ndiswrapper
 alias usb:v0BDAp8197d*dc*dsc*dp*ic*isc*ip* ndiswrapper

 mainly you just clone and add the other known ids of the card which 
 are 8187,8189,8197

 now reboot again

now you will see the ndismod -l output as it should be.

With my experiance NetworkManager can handle the card (at least under
KDE).

Thereis a minor stability bug i encounter - the connection breaks up after a while of inactivity - I plainly run a ping <mygatewayip> >/dev/null in background
system up for 24h without connectivity loss.

if any further questions feel free to ask again ;-)

Cheers
Ekim
--
Ekim Engin <mailto:[email protected]>

Cell: +90 (532) 602 59 41
MSN: [email protected] | ICQ#: 198501695

QOTD: San Francisco isn't what it used to be, and it never was.
		-- Herb Caen