aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2013-02-08 09:53:54 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-02-08 14:51:41 -0500
commit0a4cf487ffdc3a4e7b55e538cd05ef63539a9c20 (patch)
tree07764ca3d77d0e0d1e912b0f5faea8dd7ad8c500
parent426d0a562945f9e0391bf685940dfad01e1200dc (diff)
brcmfmac: Put printing action frames code under debug flag.
Reviewed-by: Arend Van Spriel <arend@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/p2p.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
index c04d596be5be..9f87a8570770 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
@@ -300,6 +300,9 @@ static bool brcmf_p2p_is_gas_action(void *frame, u32 frame_len)
300 * 300 *
301 * Print information about the p2p action frame 301 * Print information about the p2p action frame
302 */ 302 */
303
304#ifdef DEBUG
305
303static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len) 306static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len)
304{ 307{
305 struct brcmf_p2p_pub_act_frame *pact_frm; 308 struct brcmf_p2p_pub_act_frame *pact_frm;
@@ -404,6 +407,14 @@ static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len)
404 } 407 }
405} 408}
406 409
410#else
411
412static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len)
413{
414}
415
416#endif
417
407/** 418/**
408 * brcmf_p2p_set_firmware() - prepare firmware for peer-to-peer operation. 419 * brcmf_p2p_set_firmware() - prepare firmware for peer-to-peer operation.
409 * 420 *