D-Link DWA-131 A1 (Realtek RTL8191SU) not working
Idwer Vollering
vidwer at gmail.com
Fri Nov 21 01:00:47 UTC 2014
But does this patch somewhat improve the association issue?
(previous message is found at
https://lists.freebsd.org/pipermail/freebsd-wireless/2014-November/005227.html
)
Index: sys/dev/usb/wlan/if_rsu.c
==============================
=====================================
--- sys/dev/usb/wlan/if_rsu.c (revision 274656)
+++ sys/dev/usb/wlan/if_rsu.c (working copy)
@@ -48,6 +48,7 @@
#include <net/if_dl.h>
#include <net/if_media.h>
#include <net/if_types.h>
+#include <net/if_var.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
@@ -68,11 +69,13 @@
#include <dev/usb/wlan/if_rsureg.h>
+static SYSCTL_NODE(_hw_usb, OID_AUTO, rsu, CTLFLAG_RW, 0, "USB rsu");
+
#ifdef USB_DEBUG
-static int rsu_debug = 0;
-SYSCTL_NODE(_hw_usb, OID_AUTO, rsu, CTLFLAG_RW, 0, "USB rsu");
-SYSCTL_INT(_hw_usb_rsu, OID_AUTO, debug, CTLFLAG_RW, &rsu_debug, 0,
+int rsu_debug = 0;
+SYSCTL_INT(_hw_usb_rsu, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN,
&rsu_debug, 0,
"Debug level");
+TUNABLE_INT("hw.usb.rsu.debug", &rsu_debug);
#endif
static const STRUCT_USB_HOST_ID rsu_devs[] = {
@@ -1277,7 +1280,7 @@
DPRINTF("WPS PBC pushed.\n");
break;
case R92S_EVT_FWDBG:
- if (ifp->if_flags & IFF_DEBUG) {
+ if (rsu_debug >= 6) {
buf[60] = '\0';
printf("FWDBG: %s\n", (char *)buf);
}
Index: sys/modules/usb/rsu/Makefile
===================================================================
--- sys/modules/usb/rsu/Makefile (revision 274656)
+++ sys/modules/usb/rsu/Makefile (working copy)
@@ -6,5 +6,6 @@
SRCS = if_rsu.c if_rsureg.h \
bus_if.h device_if.h \
opt_bus.h opt_usb.h usb_if.h usbdevs.h
+CFLAGS+= -DUSB_DEBUG
.include <bsd.kmod.mk>
More information about the freebsd-wireless
mailing list