[Prism54-users] Does Ad-Hoc mode work on prism54 [netgear
wg511]?
Aurelien
slts@free.fr
Wed, 26 Nov 2003 00:11:00 +0100
well, maybe the following patch will help ? Please feed back.
-----------------------------------------------------------------------
diff --u --r1.61 isl_ioctl.c
--- ksrc/isl_ioctl.c 24 Nov 2003 16:48:21 -0000 1.61
+++ ksrc/isl_ioctl.c 25 Nov 2003 19:10:33 -0000
@@ -548,7 +548,7 @@
switch (*uwrq) {
case IW_MODE_ADHOC:
bsstype = DOT11_BSSTYPE_IBSS;
- cardmode = INL_MODE_CLIENT;
+ cardmode = INL_MODE_AP;
cardconfig &= ~INL_CONFIG_RXANNEX;
ndev->type = ARPHRD_ETHER;
break;
@@ -651,13 +651,14 @@
switch (mode) {
case INL_MODE_AP:
- *uwrq = IW_MODE_MASTER;
+ if (bsstype == DOT11_BSSTYPE_IBSS)
+ *uwrq = IW_MODE_ADHOC;
+ else
+ *uwrq = IW_MODE_MASTER;
break;
case INL_MODE_CLIENT:
- if (bsstype == DOT11_BSSTYPE_IBSS)
- *uwrq = IW_MODE_ADHOC;
- else if (bsstype == DOT11_BSSTYPE_INFRA)
+ if (bsstype == DOT11_BSSTYPE_INFRA)
*uwrq = IW_MODE_INFRA;
else
*uwrq = IW_MODE_AUTO;
-----------------------------------------------------------------------
...And justice for all