Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/wlan/if_ural.c
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
#include <dev/usb/usb_debug.h> | #include <dev/usb/usb_debug.h> | ||||
#include <dev/usb/wlan/if_uralreg.h> | #include <dev/usb/wlan/if_uralreg.h> | ||||
#include <dev/usb/wlan/if_uralvar.h> | #include <dev/usb/wlan/if_uralvar.h> | ||||
#ifdef USB_DEBUG | #ifdef USB_DEBUG | ||||
static int ural_debug = 0; | static int ural_debug = 0; | ||||
static SYSCTL_NODE(_hw_usb, OID_AUTO, ural, CTLFLAG_RW, 0, "USB ural"); | static SYSCTL_NODE(_hw_usb, OID_AUTO, ural, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"USB ural"); | |||||
SYSCTL_INT(_hw_usb_ural, OID_AUTO, debug, CTLFLAG_RWTUN, &ural_debug, 0, | SYSCTL_INT(_hw_usb_ural, OID_AUTO, debug, CTLFLAG_RWTUN, &ural_debug, 0, | ||||
"Debug level"); | "Debug level"); | ||||
#endif | #endif | ||||
#define URAL_RSSI(rssi) \ | #define URAL_RSSI(rssi) \ | ||||
((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ? \ | ((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ? \ | ||||
((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0) | ((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0) | ||||
▲ Show 20 Lines • Show All 2,134 Lines • Show Last 20 Lines |