|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
Copyright (c) 2005 Martin Langer <martin-langer@gmx.de>
|
|
|
Copyright (c) 2005 Stefano Brivio <stefano.brivio@polimi.it>
|
|
|
- Copyright (c) 2005, 2006 Michael Buesch <mb@bu3sch.de>
|
|
|
+ Copyright (c) 2005-2009 Michael Buesch <mb@bu3sch.de>
|
|
|
Copyright (c) 2005 Danny van Dyk <kugelfang@gentoo.org>
|
|
|
Copyright (c) 2005 Andreas Jaggi <andreas.jaggi@waterwave.ch>
|
|
|
|
|
@@ -88,6 +88,10 @@ static int modparam_btcoex = 1;
|
|
|
module_param_named(btcoex, modparam_btcoex, int, 0444);
|
|
|
MODULE_PARM_DESC(btcoex, "Enable Bluetooth coexistance (default on)");
|
|
|
|
|
|
+int b43_modparam_verbose = B43_VERBOSITY_DEFAULT;
|
|
|
+module_param_named(verbose, b43_modparam_verbose, int, 0644);
|
|
|
+MODULE_PARM_DESC(verbose, "Log message verbosity: 0=error, 1=warn, 2=info(default), 3=debug");
|
|
|
+
|
|
|
|
|
|
static const struct ssb_device_id b43_ssb_tbl[] = {
|
|
|
SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 5),
|
|
@@ -300,6 +304,8 @@ void b43info(struct b43_wl *wl, const char *fmt, ...)
|
|
|
{
|
|
|
va_list args;
|
|
|
|
|
|
+ if (b43_modparam_verbose < B43_VERBOSITY_INFO)
|
|
|
+ return;
|
|
|
if (!b43_ratelimit(wl))
|
|
|
return;
|
|
|
va_start(args, fmt);
|
|
@@ -313,6 +319,8 @@ void b43err(struct b43_wl *wl, const char *fmt, ...)
|
|
|
{
|
|
|
va_list args;
|
|
|
|
|
|
+ if (b43_modparam_verbose < B43_VERBOSITY_ERROR)
|
|
|
+ return;
|
|
|
if (!b43_ratelimit(wl))
|
|
|
return;
|
|
|
va_start(args, fmt);
|
|
@@ -326,6 +334,8 @@ void b43warn(struct b43_wl *wl, const char *fmt, ...)
|
|
|
{
|
|
|
va_list args;
|
|
|
|
|
|
+ if (b43_modparam_verbose < B43_VERBOSITY_WARN)
|
|
|
+ return;
|
|
|
if (!b43_ratelimit(wl))
|
|
|
return;
|
|
|
va_start(args, fmt);
|
|
@@ -335,18 +345,18 @@ void b43warn(struct b43_wl *wl, const char *fmt, ...)
|
|
|
va_end(args);
|
|
|
}
|
|
|
|
|
|
-#if B43_DEBUG
|
|
|
void b43dbg(struct b43_wl *wl, const char *fmt, ...)
|
|
|
{
|
|
|
va_list args;
|
|
|
|
|
|
+ if (b43_modparam_verbose < B43_VERBOSITY_DEBUG)
|
|
|
+ return;
|
|
|
va_start(args, fmt);
|
|
|
printk(KERN_DEBUG "b43-%s debug: ",
|
|
|
(wl && wl->hw) ? wiphy_name(wl->hw->wiphy) : "wlan");
|
|
|
vprintk(fmt, args);
|
|
|
va_end(args);
|
|
|
}
|
|
|
-#endif /* DEBUG */
|
|
|
|
|
|
static void b43_ram_write(struct b43_wldev *dev, u16 offset, u32 val)
|
|
|
{
|
|
@@ -3589,9 +3599,7 @@ static int b43_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
|
u8 algorithm;
|
|
|
u8 index;
|
|
|
int err;
|
|
|
-#if B43_DEBUG
|
|
|
- static const u8 bcast_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
|
|
-#endif
|
|
|
+ static const u8 bcast_addr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
|
|
|
|
|
if (modparam_nohwcrypt)
|
|
|
return -ENOSPC; /* User disabled HW-crypto */
|
|
@@ -4744,9 +4752,10 @@ static int b43_wireless_init(struct ssb_device *dev)
|
|
|
INIT_WORK(&wl->txpower_adjust_work, b43_phy_txpower_adjust_work);
|
|
|
|
|
|
ssb_set_devtypedata(dev, wl);
|
|
|
- b43info(wl, "Broadcom %04X WLAN found\n", dev->bus->chip_id);
|
|
|
+ b43info(wl, "Broadcom %04X WLAN found (core revision %u)\n",
|
|
|
+ dev->bus->chip_id, dev->id.revision);
|
|
|
err = 0;
|
|
|
- out:
|
|
|
+out:
|
|
|
return err;
|
|
|
}
|
|
|
|