brcmfmac: Put printing action frames code under debug flag.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 8 Feb 2013 14:53:54 +0000 (15:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:41 +0000 (14:51 -0500)
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>
drivers/net/wireless/brcm80211/brcmfmac/p2p.c

index c04d596be5be26555ed165815bcf4ac1870275f2..9f87a8570770b55c418d37a2eb439d1fa8d9e384 100644 (file)
@@ -300,6 +300,9 @@ static bool brcmf_p2p_is_gas_action(void *frame, u32 frame_len)
  *
  * Print information about the p2p action frame
  */
+
+#ifdef DEBUG
+
 static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len)
 {
        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)
        }
 }
 
+#else
+
+static void brcmf_p2p_print_actframe(bool tx, void *frame, u32 frame_len)
+{
+}
+
+#endif
+
 /**
  * brcmf_p2p_set_firmware() - prepare firmware for peer-to-peer operation.
  *