aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/mwl8k.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 6e017db05b8c..746532ebe5a8 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -164,7 +164,7 @@ struct mwl8k_priv {
164 164
165 u16 num_mcaddrs; 165 u16 num_mcaddrs;
166 u8 hw_rev; 166 u8 hw_rev;
167 __le32 fw_rev; 167 u32 fw_rev;
168 168
169 /* 169 /*
170 * Running count of TX packets in flight, to avoid 170 * Running count of TX packets in flight, to avoid
@@ -2825,11 +2825,16 @@ static void mwl8k_finalize_join_worker(struct work_struct *work)
2825static int __devinit mwl8k_probe(struct pci_dev *pdev, 2825static int __devinit mwl8k_probe(struct pci_dev *pdev,
2826 const struct pci_device_id *id) 2826 const struct pci_device_id *id)
2827{ 2827{
2828 static int printed_version = 0;
2828 struct ieee80211_hw *hw; 2829 struct ieee80211_hw *hw;
2829 struct mwl8k_priv *priv; 2830 struct mwl8k_priv *priv;
2830 int rc; 2831 int rc;
2831 int i; 2832 int i;
2832 u8 *fw; 2833
2834 if (!printed_version) {
2835 printk(KERN_INFO "%s version %s\n", MWL8K_DESC, MWL8K_VERSION);
2836 printed_version = 1;
2837 }
2833 2838
2834 rc = pci_enable_device(pdev); 2839 rc = pci_enable_device(pdev);
2835 if (rc) { 2840 if (rc) {
@@ -3004,13 +3009,11 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
3004 goto err_stop_firmware; 3009 goto err_stop_firmware;
3005 } 3010 }
3006 3011
3007 fw = (u8 *)&priv->fw_rev; 3012 printk(KERN_INFO "%s: 88w%u v%d, %pM, firmware version %u.%u.%u.%u\n",
3008 printk(KERN_INFO "%s: 88W%u %s\n", priv->name, priv->part_num, 3013 wiphy_name(hw->wiphy), priv->part_num, priv->hw_rev,
3009 MWL8K_DESC); 3014 hw->wiphy->perm_addr,
3010 printk(KERN_INFO "%s: Driver Ver:%s Firmware Ver:%u.%u.%u.%u\n", 3015 (priv->fw_rev >> 24) & 0xff, (priv->fw_rev >> 16) & 0xff,
3011 priv->name, MWL8K_VERSION, fw[3], fw[2], fw[1], fw[0]); 3016 (priv->fw_rev >> 8) & 0xff, priv->fw_rev & 0xff);
3012 printk(KERN_INFO "%s: MAC Address: %pM\n", priv->name,
3013 hw->wiphy->perm_addr);
3014 3017
3015 return 0; 3018 return 0;
3016 3019