Commit 26bc783f authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

b43: Add driver load messages

This adds printk messages with basic information about the driver being loaded.
This information includes a summary of the compiled-in features, which
simplifies bug-reporting and debugging a lot.
Also a firmware ID is printed. This is a unique identifier blob for a specific
version of the firmware. This ID is attached to a specific version of the firmware
blob in b43-fwcutter (see fwcutter git).
This helps users to select the right firmware for their device.
This also makes it possible to use automated scripts to fetch and extract the right
firmware for the driver. (the script will grep the .ko for the "Firmware-ID: xxx" string.
While the driver might still support other versions of the firmware for backward
compatibility, this will always print out the officially supported version, which
people _should_ use.

Signed-off-by: default avatarMichael Buesch <>
Signed-off-by: default avatarJohn W. Linville <>
parent 8e118f0e
......@@ -14,6 +14,12 @@
#include "lo.h"
#include "phy.h"
/* The unique identifier of the firmware that's officially supported by
* this driver version. */
# define B43_DEBUG 1
......@@ -4200,6 +4200,33 @@ static struct ssb_driver b43_ssb_driver = {
.resume = b43_resume,
static void b43_print_driverinfo(void)
const char *feat_pci = "", *feat_pcmcia = "", *feat_nphy = "",
*feat_leds = "", *feat_rfkill = "";
feat_pci = "P";
feat_pcmcia = "M";
#ifdef CONFIG_B43_NPHY
feat_nphy = "N";
#ifdef CONFIG_B43_LEDS
feat_leds = "L";
feat_rfkill = "R";
printk(KERN_INFO "Broadcom 43xx driver loaded "
"[ Features: %s%s%s%s%s, Firmware-ID: "
feat_pci, feat_pcmcia, feat_nphy,
feat_leds, feat_rfkill);
static int __init b43_init(void)
int err;
......@@ -4211,6 +4238,7 @@ static int __init b43_init(void)
err = ssb_driver_register(&b43_ssb_driver);
if (err)
goto err_pcmcia_exit;
return err;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment