FreeBSD/sys/dev/usb/wlan/if_uath.c
/*
 * This function is called periodically (every second) when associated to
 * query device statistics.
 */
This function is called periodically (every second) when associated to
query device statistics.
This function is called periodically ( every second ) when associated to query device statistics .
static void
uath_stat(void *arg)
{
	struct uath_softc *sc = arg;
	int error;
	UATH_LOCK(sc);
	error = uath_cmd_write(sc, WDCMSG_TARGET_GET_STATS, NULL, 0,
	    UATH_CMD_FLAG_ASYNC);
	if (error != 0) {
		device_printf(sc->sc_dev,
		    "could not query stats, error %d\n", error);
	}
	UATH_UNLOCK(sc);
}
static void uath_stat ( void * arg ) { struct uath_softc * sc = arg ; int error ; UATH_LOCK ( sc ) ; error = uath_cmd_write ( sc , WDCMSG_TARGET_GET_STATS , NULL , 0 , UATH_CMD_FLAG_ASYNC ) ; if ( error != 0 ) { device_printf ( sc -> sc_dev , " \n " , error ) ; } UATH_UNLOCK ( sc ) ; }
This function is called periodically (every second) when associated to
 query device statistics.
This function is called periodically ( every second ) when associated to query device statistics .
/*
	 * Send request for statistics asynchronously. The timer will be
	 * restarted when we'll get the stats notification.
	 */