Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249341
b: refs/heads/master
c: 792aa40
h: refs/heads/master
i:
  249339: 250b22d
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed May 3, 2011
1 parent 71bfab5 commit c9cb9e4
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0176a203bdce12a4584362d7d64031a6b944cc25
refs/heads/master: 792aa4084da918f6615a2d4d2b9e021d7e6c1fea
15 changes: 10 additions & 5 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef _wl_dbg_h_
#define _wl_dbg_h_

#include <linux/device.h> /* dev_err() */

/* wl_msg_level is a bit vector with defs in wlioctl.h */
extern u32 wl_msg_level;

Expand All @@ -26,14 +28,17 @@ do { \
printk(fmt, ##args); \
} while (0)

#define BCMMSG(dev, fmt, args...) \
do { \
if (wl_msg_level & WL_TRACE_VAL) \
wiphy_err(dev, "%s: " fmt, __func__, ##args); \
} while (0)

#ifdef BCMDBG

#define WL_TRACE(fmt, args...) WL_PRINT(WL_TRACE_VAL, fmt, ##args)
#define WL_AMPDU(fmt, args...) WL_PRINT(WL_AMPDU_VAL, fmt, ##args)
#define WL_FFPLD(fmt, args...) WL_PRINT(WL_FFPLD_VAL, fmt, ##args)

#define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL)

/* Extra message control for AMPDU debugging */
#define WL_AMPDU_UPDN_VAL 0x00000001 /* Config up/down related */
#define WL_AMPDU_ERR_VAL 0x00000002 /* Calls to beaocn update */
Expand Down Expand Up @@ -79,8 +84,6 @@ do { \
#define WL_AMPDU(fmt, args...) no_printk(fmt, ##args)
#define WL_FFPLD(fmt, args...) no_printk(fmt, ##args)

#define WL_ERROR_ON() 0

#define WL_AMPDU_UPDN(fmt, args...) no_printk(fmt, ##args)
#define WL_AMPDU_RX(fmt, args...) no_printk(fmt, ##args)
#define WL_AMPDU_ERR(fmt, args...) no_printk(fmt, ##args)
Expand All @@ -95,4 +98,6 @@ do { \

#endif /* BCMDBG */

#define WL_ERROR_ON() (wl_msg_level & WL_ERROR_VAL)

#endif /* _wl_dbg_h_ */
17 changes: 6 additions & 11 deletions trunk/drivers/staging/brcm80211/brcmsmac/wl_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ static struct wl_info *wl_attach(u16 vendor, u16 device, unsigned long regs,
/* Do nothing */
} else {
bustype = PCI_BUS;
WL_TRACE("force to PCI\n");
BCMMSG(wl->wiphy, "force to PCI\n");
}
wl->bcm_bustype = bustype;

Expand Down Expand Up @@ -1104,9 +1104,9 @@ wl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
struct ieee80211_hw *hw;
u32 val;

WL_TRACE("%s: bus %d slot %d func %d irq %d\n",
__func__, pdev->bus->number, PCI_SLOT(pdev->devfn),
PCI_FUNC(pdev->devfn), pdev->irq);
dev_info(&pdev->dev, "bus %d slot %d func %d irq %d\n",
pdev->bus->number, PCI_SLOT(pdev->devfn),
PCI_FUNC(pdev->devfn), pdev->irq);

if ((pdev->vendor != PCI_VENDOR_ID_BROADCOM) ||
(((pdev->device & 0xff00) != 0x4300) &&
Expand Down Expand Up @@ -1155,8 +1155,6 @@ static int wl_suspend(struct pci_dev *pdev, pm_message_t state)
struct wl_info *wl;
struct ieee80211_hw *hw;

WL_TRACE("wl: wl_suspend\n");

hw = pci_get_drvdata(pdev);
wl = HW_TO_WL(hw);
if (!wl) {
Expand All @@ -1182,7 +1180,6 @@ static int wl_resume(struct pci_dev *pdev)
int err = 0;
u32 val;

WL_TRACE("wl: wl_resume\n");
hw = pci_get_drvdata(pdev);
wl = HW_TO_WL(hw);
if (!wl) {
Expand Down Expand Up @@ -1414,8 +1411,7 @@ void wl_txflowcontrol(struct wl_info *wl, struct wl_if *wlif, bool state,
*/
void wl_init(struct wl_info *wl)
{
WL_TRACE("wl%d: wl_init\n", wl->pub->unit);

BCMMSG(WL_TO_HW(wl)->wiphy, "wl%d\n", wl->pub->unit);
wl_reset(wl);

wlc_init(wl->wlc);
Expand All @@ -1426,8 +1422,7 @@ void wl_init(struct wl_info *wl)
*/
uint wl_reset(struct wl_info *wl)
{
WL_TRACE("wl%d: wl_reset\n", wl->pub->unit);

BCMMSG(WL_TO_HW(wl)->wiphy, "wl%d\n", wl->pub->unit);
wlc_reset(wl->wlc);

/* dpc will not be rescheduled */
Expand Down
Loading

0 comments on commit c9cb9e4

Please sign in to comment.