Message ID | 4b06544d432227e8587f17330f73edcaa734de86.1276988387.git.joe@perches.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 7965b70..8031f24 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -311,13 +311,15 @@ static int b43_wireless_core_start(struct b43_wldev *dev); static int b43_ratelimit(struct b43_wl *wl) { + static DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 10); + if (!wl || !wl->current_dev) return 1; if (b43_status(wl->current_dev) < B43_STAT_STARTED) return 1; /* We are up and running. * Ratelimit the messages to avoid DoS over the net. */ - return net_ratelimit(); + return __ratelimit(&ratelimit); } void b43info(struct b43_wl *wl, const char *fmt, ...)