Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
[Debian] Soucis de wifi avec Carte Realtek
Envoyé par: bicross87

Bonjour !
Voilà mon soucis : Je possède un portable Toshiba Satellite L-40, dont la carte wifi est une Realtek, branchée sur un concentrateur USB interne, Le tout, tournant sous Debian.

bicross@debian:~$ lsusb
Bus 001 Device 002: ID 0bda:8197 Realtek Semiconductor Corp.

Pour la faire fonctionner, j'utilisais les drivers fournis ici :
[www.datanorth.net]

Sous le noyau 2.6.18-5-686, cela fonctionnait plutôt bien.
Seulement, hier, je me décide à mettre à jour mon noyau :

bicross@debian:~$ uname -r
2.6.24-1-686

Seulement, Au reboot, bien sur, les drivers Wifi ne fonctionnent plus...
Je retélécharge donc, et retente l'install, et c'est là que ça se gate :

bicross@debian:~/rtl8187b$ tar -zxvf rtl8187b-modified-dist.tar.gz
[...]
bicross@debian:~/rtl8187b$ cd rtl8187b-modified
bicross@debian:~/rtl8187b/rtl8187b-modified$ ./makedrv
rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~
make -C /lib/modules/2.6.24-1-686/build M=/home/bicross/rtl8187b/rtl8187b-modified/ieee80211 CC=gcc modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
scripts/Makefile.build:46: *** CFLAGS was changed in "/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/Makefile". Fix it to use EXTRA_CFLAGS. Arrêt.
make[1]: *** [_module_/home/bicross/rtl8187b/rtl8187b-modified/ieee80211] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
make: *** [modules] Erreur 2
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
make -C /lib/modules/2.6.24-1-686/build M=/home/bicross/rtl8187b/rtl8187b-modified/rtl8187 CC=gcc modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
scripts/Makefile.build:46: *** CFLAGS was changed in "/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/Makefile". Fix it to use EXTRA_CFLAGS. Arrêt.
make[1]: *** [_module_/home/bicross/rtl8187b/rtl8187b-modified/rtl8187] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
make: *** [modules] Erreur 2
bicross@debian:~/rtl8187b/rtl8187b-modified$

Alors, jamais eu ces soucis de CFLAGS EXTRA_CFLAGS, déjà là, je cale...
J'ai essayé de remplacer les "CFLAGS" par "EXTRA_CFLAGS" et j'obtiens :
bicross@debian:~/rtl8187b/rtl8187b-modified$ ./makedrv
rm -fr *.mod.c *.mod *.o .*.cmd *.mod.* *.ko *.o *~
make -C /lib/modules/2.6.24-1-686/build M=/home/bicross/rtl8187b/rtl8187b-modified/ieee80211 CC=gcc modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.o
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_scan_wq’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:433: warning: initialization from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:432: warning: unused variable ‘dwork’
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_probe_resp’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:710: warning: ISO C90 forbids mixed declarations and code
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1554:4: warning: #warning CHECK_LOCK_HERE
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1594:2: warning: #warning CHECK_LOCK_HERE
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_associate_retry_wq’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2253: warning: initialization from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2252: warning: unused variable ‘dwork’
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_softmac_init’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2475: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2476: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2477: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2478: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2479: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:2480: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c: In function ‘ieee80211_rx_frame_softmac’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1666: warning: ‘chlen’ may be used uninitialized in this function
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1554:4: warning: #warning CHECK_LOCK_HERE
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac.c:1594:2: warning: #warning CHECK_LOCK_HERE
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_rx.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_tx.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_wx.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_module.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_softmac_wx.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt.o
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.o
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_aes_encrypt’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c:87: warning: passing argument 1 of ‘crypto_cipher_encrypt_one’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_init’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c:109: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c:125: warning: passing argument 1 of ‘crypto_free_cipher’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_deinit’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c:141: warning: passing argument 1 of ‘crypto_free_cipher’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c: In function ‘ieee80211_ccmp_set_key’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_ccmp.c:423: warning: passing argument 1 of ‘crypto_cipher_setkey’ from incompatible pointer type
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.o
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c: In function ‘ieee80211_tkip_encrypt’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c:408: error: ‘struct scatterlist’ has no member named ‘page’
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c: In function ‘ieee80211_tkip_decrypt’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c:499: error: ‘struct scatterlist’ has no member named ‘page’
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c: In function ‘michael_mic’:
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c:604: error: ‘struct scatterlist’ has no member named ‘page’
/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.c:608: error: ‘struct scatterlist’ has no member named ‘page’
make[2]: *** [/home/bicross/rtl8187b/rtl8187b-modified/ieee80211/ieee80211_crypt_tkip.o] Erreur 1
make[1]: *** [_module_/home/bicross/rtl8187b/rtl8187b-modified/ieee80211] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
make: *** [modules] Erreur 2
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
make -C /lib/modules/2.6.24-1-686/build M=/home/bicross/rtl8187b/rtl8187b-modified/rtl8187 CC=gcc modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
  CC [M]  /home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.o
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_proc_module_init’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:627: error: ‘proc_net’ undeclared (first use in this function)
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:627: error: (Each undeclared identifier is reported only once
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:627: error: for each function it appears in.)
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_proc_module_remove’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:633: error: ‘proc_net’ undeclared (first use in this function)
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_rx_urbsubmit’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:934: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_rx_manage_urbsubmit’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:954: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_rtx_disable’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:1255: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2220: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2227: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2277: warning: ISO C90 forbids mixed declarations and code
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2281: warning: ISO C90 forbids mixed declarations and code
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2310: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2256: warning: unused variable ‘i’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_deleteendpoints’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2328: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: At top level:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2435: warning: ‘struct struct_work’ declared inside parameter list
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2435: warning: its scope is only this definition or declaration, which is probably not what you want
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_wmm_param_update’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2437: warning: initialization from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2439: warning: initialization from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_init’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2654: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:2702: warning: assignment from incompatible pointer type
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_adapter_start’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:3054: warning: unused variable ‘bInvalidWirelessMode’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:3053: warning: unused variable ‘SupportedWirelessMode’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:3052: warning: unused variable ‘InitWirelessMode’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:3051: warning: unused variable ‘ieee’
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8180_irq_rx_tasklet’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:3769: warning: ISO C90 forbids mixed declarations and code
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c: In function ‘rtl8187_usb_probe’:
/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.c:4059: error: implicit declaration of function ‘SET_MODULE_OWNER’
make[2]: *** [/home/bicross/rtl8187b/rtl8187b-modified/rtl8187/r8187_core.o] Erreur 1
make[1]: *** [_module_/home/bicross/rtl8187b/rtl8187b-modified/rtl8187] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
make: *** [modules] Erreur 2

Désolé pour l'extrême lourdeur du message :-/
Quelqu'un a une idée pour faire fonctionner ce joyeux bord*l? :,(

Inutile de préciser qu'en rebootant sur l'ancien noyau, ça ne fonctionne plus non plus...

Merci d'avance !
Bicross







Poste le Saturday 2 February 2008 11:44:12
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: bicross87

Je me réponds à moi-même si le bidule a pas beaucoup avancé sad smiley

j'suis retourné sur le noyau précédent (le 2.6.18-5), et la compilation se passe sans soucis, jusqu'à ce que je doive faire :

debian:/home/bicross/rtl8187b/rtl8187b-unmodified# ./wlan0up
insmod: error inserting 'ieee80211_crypt-rtl.ko': -1 Invalid module format
insmod: error inserting 'ieee80211_crypt_wep-rtl.ko': -1 Invalid module format
insmod: error inserting 'ieee80211_crypt_tkip-rtl.ko': -1 Invalid module format
insmod: error inserting 'ieee80211_crypt_ccmp-rtl.ko': -1 Invalid module format
insmod: error inserting 'ieee80211-rtl.ko': -1 Invalid module format
insmod: error inserting 'r8187.ko': -1 Invalid module format
wlan0: ERROR while getting interface flags: Aucun périphérique de ce type

ça fait exactement pareil avec le pack modifié dispo sur le lien, dans le premier post...

Quelqu'un à une idée ? sad smiley

Si non, une marque de carte Wifi pour portable, pas trop cher, et bien supportée?

Merci d'avance!
Bicross

Poste le Saturday 2 February 2008 20:43:31
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: jimbo

T'as bien installé les sources et headers pour le nouveau kernel ?

Uptime serveur Samba :

Poste le Saturday 2 February 2008 21:29:45
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: bicross87

oui, c'est installé smiling smiley
Merci de ton aide !

Mais J'ai résolu le soucis...
J'utilise un dongle USB USRobotics que j'avais, qui est reconnu, et fonctionne tout seul !

Par contre, au boot, il me fait un DHCPDISCOVER sur le port eth0...
Comment virer cette fonction? smiling smiley

Merci d'avance !
Bicross

Poste le Sunday 3 February 2008 21:53:49
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: Nab

Bonsoir,

Pour ton problème original, essais peut-être de faire un make clean avant de lancer la compilation ?


Pour désactiver eth0 au boot, édite /etc/network/interfaces et commente (met un # devant ;-)) les lignes référençant cette interface.


Cordialement,
Nab

Poste le Sunday 3 February 2008 22:40:15
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: bicross87

Bonjour !
Tout d'abord, merci pour ton intérêt winking smiley
Alors, pour le make clean, le script ./makedrv en fait un dans chaque rép avant :

-make clean
-make

Mais j'abandonne un peu cette idée d'utiliser ma carte, ça marche tellement mieux avec le dongle ! smiling smiley

Pour la désactivation du port, j'hésite, car j'en ai besoin parfois pour me câbler (à l'école, tout ça)...
J'aimerais juste désactiver la fonction "DHCPDISCOVER" qui me rajoute 3 minutes au boot :s

Merci d'avance !
Bicross winking smiley

Poste le Tuesday 5 February 2008 11:03:20
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: Actarus0777

Salut!
bon bah moi j'ai trouvé la solution a ton probleme avec cette carte Realtek RTL8187B sous linux 2.6.24-16
Là ou tu vas prendre le rtl8187b-modified-dist.tar.gz (et le README et le FAQ.html si tu veux)
a cette adresse: [www.datanorth.net]
(ne prends pas rtl8187b-unmodified-realtek.tar.gz, ni rtl8187b-modified-jadams-2-1-2008.tar.gz c marche pas)
bon, il y a un 2.6.24.patch telecharge-le
ce fichier contient toutes les modifications à effectuer sur plusieurs fichiers
(et bien sur il y a les EXTRA_CFLAGS (au debut seulement) des 2 fichiers Makefile)
en fait, il faut modifier
ieee80211/ieee80211_crypt_tkip.c
ieee80211/ieee80211_crypt_wep.c
ieee80211/ieee80211_softmac.c
ieee80211/Makefile
rtl8187/Makefile
rtl8187/r8187_core.c
les numeros de lignes où effectuer les modifs sont indiqués (- tu supprimes, + tu ajoutes)
bon c un peu galere a faire mais ca marche trop trop bien c impecc
j'ai fait ensuite un sudo ./makedrv et hop aucune erreur!
j'ai fait mon sudo ./wlan0up et hop voici voila mon wifi dans mon Ubuntu Hardy Heron sur mon Toshiba A210-176
trop trop bien
et ne remercions pas Realtek pour ne pas avoir sorti de pilote driver linux pour cette RTL8187B

pour info, voici le fichier 2.6.24.patch:

diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_crypt_tkip.c rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_crypt_tkip.c
--- rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_crypt_tkip.c 2007-08-22 08:21:55.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_crypt_tkip.c 2008-03-21 03:18:37.000000000 +0000
@@ -405,9 +405,7 @@
crypto_cipher_encrypt(tkey->tfm_arc4, &sg, &sg, len + 4);
#else
crypto_blkcipher_setkey(tkey->tx_tfm_arc4, rc4key, 16);
- sg.page = virt_to_page(pos);
- sg.offset = offset_in_page(pos);
- sg.length = len + 4;
+ sg_init_one(&sg, pos, len + 4);
ret= crypto_blkcipher_encrypt(&desc, &sg, &sg, len + 4);
#endif
tkey->tx_iv16++;
@@ -496,9 +494,7 @@
crypto_cipher_decrypt(tkey->tfm_arc4, &sg, &sg, plen + 4);
#else
crypto_blkcipher_setkey(tkey->rx_tfm_arc4, rc4key, 16);
- sg.page = virt_to_page(pos);
- sg.offset = offset_in_page(pos);
- sg.length = plen + 4;
+ sg_init_one(&sg, pos, plen + 4);
if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4)) {
if (net_ratelimit()) {
printk(KERN_DEBUG ": TKIP: failed to decrypt "
@@ -601,13 +597,9 @@
printk(KERN_WARNING "michael_mic: tfm_michael == NULL\n");
return -1;
}
- sg[0].page = virt_to_page(hdr);
- sg[0].offset = offset_in_page(hdr);
- sg[0].length = 16;
+ sg_init_one(&(sg[0]), hdr, 16);

- sg[1].page = virt_to_page(data);
- sg[1].offset = offset_in_page(data);
- sg[1].length = data_len;
+ sg_init_one(&(sg[1]), data, data_len);

if (crypto_hash_setkey(tfm_michael, key, 8))
return -1;
diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_crypt_wep.c rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_crypt_wep.c
--- rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_crypt_wep.c 2007-08-22 08:21:54.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_crypt_wep.c 2008-03-21 03:20:04.000000000 +0000
@@ -199,9 +199,7 @@
return 0;
#else
crypto_blkcipher_setkey(wep->tx_tfm, key, klen);
- sg.page = virt_to_page(pos);
- sg.offset = offset_in_page(pos);
- sg.length = len + 4;
+ sg_init_one(&sg, pos, len + 4);
return crypto_blkcipher_encrypt(&desc, &sg, &sg, len + 4);
#endif
}
@@ -251,9 +249,7 @@
crypto_cipher_decrypt(wep->tfm, &sg, &sg, plen + 4);
#else
crypto_blkcipher_setkey(wep->rx_tfm, key, klen);
- sg.page = virt_to_page(pos);
- sg.offset = offset_in_page(pos);
- sg.length = plen + 4;
+ sg_init_one(&sg, pos, plen + 4);
if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4))
return -7;
#endif
diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_softmac.c rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_softmac.c
--- rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/ieee80211_softmac.c 2007-08-22 08:21:55.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/ieee80211/ieee80211_softmac.c 2008-03-21 03:27:37.000000000 +0000
@@ -429,7 +429,6 @@
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))
void ieee80211_softmac_scan_wq(struct work_struct *work)
{
- struct delayed_work *dwork = container_of(work, struct delayed_work, work);
struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, softmac_scan_wq);
#else
void ieee80211_softmac_scan_wq(struct ieee80211_device *ieee)
@@ -1663,7 +1662,7 @@
struct ieee80211_hdr_3addr *header = (struct ieee80211_hdr_3addr *) skb->data;
u16 errcode;
u8* challenge;
- int chlen;
+ int chlen = 0;
int aid;
struct ieee80211_assoc_response_frame *assoc_resp;
struct ieee80211_info_element *info_element;
@@ -2249,7 +2248,6 @@
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20))
void ieee80211_associate_retry_wq(struct work_struct *work)
{
- struct delayed_work *dwork = container_of(work, struct delayed_work, work);
struct ieee80211_device *ieee = container_of(work, struct ieee80211_device, associate_retry_wq);
#else
void ieee80211_associate_retry_wq(struct ieee80211_device *ieee)
diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/Makefile rtl8187B_linux_24.6.1024.0822.2007/ieee80211/Makefile
--- rtl8187B_linux_24.6.1024.0822.2007.orig/ieee80211/Makefile 2007-08-22 08:49:26.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/ieee80211/Makefile 2008-03-21 02:54:00.000000000 +0000
@@ -1,6 +1,6 @@
EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless
EXTRA_CFLAGS += -O2
-CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX

CC = gcc

diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/rtl8187/Makefile rtl8187B_linux_24.6.1024.0822.2007/rtl8187/Makefile
--- rtl8187B_linux_24.6.1024.0822.2007.orig/rtl8187/Makefile 2007-08-22 08:21:55.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/rtl8187/Makefile 2008-03-21 02:54:45.000000000 +0000
@@ -5,8 +5,8 @@
EXTRA_CFLAGS += -O2
EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y
#ieee80211-r8180-objs := ieee80211.o ieee80211_rx.o ieee80211_tx.o ieee80211_wx.o ieee80211_module.o
-CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
-CFLAGS += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB
+EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX
+EXTRA_CFLAGS += -DTHOMAS_BEACON -DTHOMAS_TASKLET -DTHOMAS_SKB

#ieee80211_crypt-r8180 := ieee80211_crypt-r8180.o

diff -ruBb rtl8187B_linux_24.6.1024.0822.2007.orig/rtl8187/r8187_core.c rtl8187B_linux_24.6.1024.0822.2007/rtl8187/r8187_core.c
--- rtl8187B_linux_24.6.1024.0822.2007.orig/rtl8187/r8187_core.c 2007-08-22 08:54:58.000000000 +0100
+++ rtl8187B_linux_24.6.1024.0822.2007/rtl8187/r8187_core.c 2008-03-21 04:01:58.000000000 +0000
@@ -618,13 +618,13 @@
void rtl8180_proc_module_init(void)
{
DMESG("Initializing proc filesystem");
- rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, proc_net);
+ rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net);
}


void rtl8180_proc_module_remove(void)
{
- remove_proc_entry(RTL8187_MODULE_NAME, proc_net);
+ remove_proc_entry(RTL8187_MODULE_NAME, init_net.proc_net);
}


@@ -4038,8 +4038,6 @@

dev = alloc_ieee80211(sizeof(struct r8180_priv));

- SET_MODULE_OWNER(dev);
-
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
usb_set_intfdata(intf, dev);
SET_NETDEV_DEV(dev, &intf->dev);

Poste le Friday 2 May 2008 18:27:07
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: Actarus0777

et au fait c bon tu peut enlever ton dongle c un peu galere ca
c kan meme mieux kan c intégré!
bon courage et tiens nous au courant si tu as réussi!
apparement j'ai trouvé personne ki a fait la mise a jour pour la 2.6.24
reste plus ka mettre a jour le wiki sur le site de ubuntu pour le toshiba A210
mais je sais pas faire ca...

Poste le Friday 2 May 2008 18:31:21
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: lolotux

Citation
bicross87
Pour la désactivation du port, j'hésite, car j'en
ai besoin parfois pour me câbler (à l'école, tout
ça)...
J'aimerais juste désactiver la fonction
"DHCPDISCOVER" qui me rajoute 3 minutes au boot

Si ta carte doit te servir, en dhcp, alors tu auras toujours des DHCPDISCOVER !
Ex :
# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit [www.isc.org]

Listening on LPF/eth0/00:11:09:b4:0f:b2
Sending on   LPF/eth0/00:11:09:b4:0f:b2
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.254 -- renewal in 82967 seconds.

Par contre si tu veux raccourcir le temps que cela met pour s'endormir dans le cas où la carte eth0 n'arrive à joindre aucun DHCP, il y a le fichier :
/etc/dhcp3/dhclient.conf

Qui lorsqu'on règle les :
timeout 2;
retry 0;
reboot 0;
select-timeout 2;
initial-interval 2;

Ne mets plus trois jours à prendre une décision et passer la main ! ;-)

Software is like sex !
It's better when it's Free !

Poste le Saturday 10 May 2008 05:40:38
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: bicross87

Tiens, j'avais oublié ce topic smiling smiley
En tout cas, merci à vous deux !
Maintenant, ma carte wifi fonctionne (grâce à la version prépatchée du site cité plus haut smiling smiley)
Et Pour le time out du DHCP, c'est ok aussi !

Merci encore smiling smiley

Poste le Saturday 24 May 2008 18:56:18
Répondre     Citer    
Re: [Debian] Soucis de wifi avec Carte Realtek
Envoyé par: Ibash

Bonjour j'ai la même carte réseau malheureusement mon niveau en informatique et moindre et biens sur la manip que vous expliquer m'est "impossible" x_X

Pouvez vous m'expliquez plus simplement s'il vous plait; merci.

Poste le Sunday 11 January 2009 17:36:50
Répondre     Citer    

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
[Debian] Soucis de wifi avec Carte Realtek
Vous voulez savoir si votre matériel est supporté par Linux, ou vous avez un problème pour installer un module ? Ce forum est pour vous !

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons