#108533 - Hermes - Thu Nov 09, 2006 11:09 pm
Hi.
I have finded a little bug in the dswifilib that it did not allow me to connect by WEP 128 bits, 13 bytes ascii and i post the modified fucntion in wifi_arm7.c
As you can see, only change the line: wepmode&=~4;
In my test i can see if you put the value 1, it work under WEP 64 bits, 5 chars and if you put the value 2, it work under WEP 128 bytes, 13 chars
Here the table of values (without my modification):
0-> no WEEP
1-> 64 bit, 5 chars
2-> 128 bits, 13 chars
3-> I think 128 bits, 16 chars
4-> unknown for me
5-> 64bits, 5 chars
6-> fail
7-> 64 bits, 5 chars
So you can see it is a good idea set to 0 this bit ;)
I am using the Nintendo Wifi USB Conector, modified to be an AP
I have finded a little bug in the dswifilib that it did not allow me to connect by WEP 128 bits, 13 bytes ascii and i post the modified fucntion in wifi_arm7.c
Code: |
void Wifi_SetWepMode(int wepmode) { if(wepmode<0 || wepmode>7) return; if(wepmode==0) { WIFI_REG(0x32)=0x0000; } else { WIFI_REG(0x32)=0x8000; } if(wepmode==0) wepmode=1; wepmode&=~4; /* 0->no wep, 1-> 64 bits (5 chr), 2-> 128 bits (13 chr) 3->128 bits (16 chr)*/ W_MODE_WEP = (W_MODE_WEP & 0xFFC7) | (wepmode<<3); } |
As you can see, only change the line: wepmode&=~4;
In my test i can see if you put the value 1, it work under WEP 64 bits, 5 chars and if you put the value 2, it work under WEP 128 bytes, 13 chars
Here the table of values (without my modification):
0-> no WEEP
1-> 64 bit, 5 chars
2-> 128 bits, 13 chars
3-> I think 128 bits, 16 chars
4-> unknown for me
5-> 64bits, 5 chars
6-> fail
7-> 64 bits, 5 chars
So you can see it is a good idea set to 0 this bit ;)
I am using the Nintendo Wifi USB Conector, modified to be an AP