aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c')
-rw-r--r--drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
index 448ab9c4eb4..04ba9a878f4 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c
@@ -96,10 +96,10 @@ static struct bcma_device_id brcms_coreid_table[] = {
96}; 96};
97MODULE_DEVICE_TABLE(bcma, brcms_coreid_table); 97MODULE_DEVICE_TABLE(bcma, brcms_coreid_table);
98 98
99#ifdef BCMDBG 99#ifdef DEBUG
100static int msglevel = 0xdeadbeef; 100static int msglevel = 0xdeadbeef;
101module_param(msglevel, int, 0); 101module_param(msglevel, int, 0);
102#endif /* BCMDBG */ 102#endif /* DEBUG */
103 103
104static struct ieee80211_channel brcms_2ghz_chantable[] = { 104static struct ieee80211_channel brcms_2ghz_chantable[] = {
105 CHAN2GHZ(1, 2412, IEEE80211_CHAN_NO_HT40MINUS), 105 CHAN2GHZ(1, 2412, IEEE80211_CHAN_NO_HT40MINUS),
@@ -857,7 +857,7 @@ static void brcms_free(struct brcms_info *wl)
857 /* free timers */ 857 /* free timers */
858 for (t = wl->timers; t; t = next) { 858 for (t = wl->timers; t; t = next) {
859 next = t->next; 859 next = t->next;
860#ifdef BCMDBG 860#ifdef DEBUG
861 kfree(t->name); 861 kfree(t->name);
862#endif 862#endif
863 kfree(t); 863 kfree(t);
@@ -1177,10 +1177,10 @@ static int __init brcms_module_init(void)
1177{ 1177{
1178 int error = -ENODEV; 1178 int error = -ENODEV;
1179 1179
1180#ifdef BCMDBG 1180#ifdef DEBUG
1181 if (msglevel != 0xdeadbeef) 1181 if (msglevel != 0xdeadbeef)
1182 brcm_msg_level = msglevel; 1182 brcm_msg_level = msglevel;
1183#endif /* BCMDBG */ 1183#endif /* DEBUG */
1184 1184
1185 error = bcma_driver_register(&brcms_bcma_driver); 1185 error = bcma_driver_register(&brcms_bcma_driver);
1186 printk(KERN_ERR "%s: register returned %d\n", __func__, error); 1186 printk(KERN_ERR "%s: register returned %d\n", __func__, error);
@@ -1367,7 +1367,7 @@ struct brcms_timer *brcms_init_timer(struct brcms_info *wl,
1367 t->next = wl->timers; 1367 t->next = wl->timers;
1368 wl->timers = t; 1368 wl->timers = t;
1369 1369
1370#ifdef BCMDBG 1370#ifdef DEBUG
1371 t->name = kmalloc(strlen(name) + 1, GFP_ATOMIC); 1371 t->name = kmalloc(strlen(name) + 1, GFP_ATOMIC);
1372 if (t->name) 1372 if (t->name)
1373 strcpy(t->name, name); 1373 strcpy(t->name, name);
@@ -1386,7 +1386,7 @@ void brcms_add_timer(struct brcms_timer *t, uint ms, int periodic)
1386{ 1386{
1387 struct ieee80211_hw *hw = t->wl->pub->ieee_hw; 1387 struct ieee80211_hw *hw = t->wl->pub->ieee_hw;
1388 1388
1389#ifdef BCMDBG 1389#ifdef DEBUG
1390 if (t->set) 1390 if (t->set)
1391 wiphy_err(hw->wiphy, "%s: Already set. Name: %s, per %d\n", 1391 wiphy_err(hw->wiphy, "%s: Already set. Name: %s, per %d\n",
1392 __func__, t->name, periodic); 1392 __func__, t->name, periodic);
@@ -1431,7 +1431,7 @@ void brcms_free_timer(struct brcms_timer *t)
1431 1431
1432 if (wl->timers == t) { 1432 if (wl->timers == t) {
1433 wl->timers = wl->timers->next; 1433 wl->timers = wl->timers->next;
1434#ifdef BCMDBG 1434#ifdef DEBUG
1435 kfree(t->name); 1435 kfree(t->name);
1436#endif 1436#endif
1437 kfree(t); 1437 kfree(t);
@@ -1443,7 +1443,7 @@ void brcms_free_timer(struct brcms_timer *t)
1443 while (tmp) { 1443 while (tmp) {
1444 if (tmp->next == t) { 1444 if (tmp->next == t) {
1445 tmp->next = t->next; 1445 tmp->next = t->next;
1446#ifdef BCMDBG 1446#ifdef DEBUG
1447 kfree(t->name); 1447 kfree(t->name);
1448#endif 1448#endif
1449 kfree(t); 1449 kfree(t);