[PATCH] ipw2200: print geography code upon module load

Given the amount of support requests for the meaning of the geography code
I've written a patch for printing this information on module load no matter
the debug level.

I've also added a section to the README.ipw2200 file listing the geography
codes and their meaning.

Signed-off-by: Henrik Brix Andersen <brix@gentoo.org>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Henrik Brix Andersen
2006-02-14 09:09:52 +08:00
committed by John W. Linville
parent 53d0bcf82a
commit 48a847709f
2 changed files with 39 additions and 3 deletions

View File

@@ -10364,6 +10364,9 @@ static int ipw_config(struct ipw_priv *priv)
* not intended for resale of the above mentioned Intel adapters has
* not been tested.
*
* Remember to update the table in README.ipw2200 when changing this
* table.
*
*/
static const struct ieee80211_geo ipw_geos[] = {
{ /* Restricted */
@@ -10662,9 +10665,6 @@ static int ipw_up(struct ipw_priv *priv)
return 0;
}
IPW_DEBUG_INFO("Geography %03d [%s] detected.\n",
j, priv->ieee->geo.name);
if (priv->status & STATUS_RF_KILL_SW) {
IPW_WARNING("Radio disabled by module parameter.\n");
return 0;
@@ -10985,6 +10985,12 @@ static int ipw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
IPW_ERROR("failed to register network device\n");
goto out_remove_sysfs;
}
printk(KERN_INFO DRV_NAME ": Detected geography %s (%d 802.11bg "
"channels, %d 802.11a channels)\n",
priv->ieee->geo.name, priv->ieee->geo.bg_channels,
priv->ieee->geo.a_channels);
return 0;
out_remove_sysfs: