staging: rt2860: remove custom min() and max()
[cascardo/linux.git] / drivers / staging / rt2860 / sta / rtmp_data.c
index 5d348e9..23879b7 100644 (file)
@@ -35,6 +35,7 @@
        --------        ----------              ----------------------------------------------
 */
 #include "../rt_config.h"
+#include <linux/kernel.h>
 
 void STARxEAPOLFrameIndicate(struct rt_rtmp_adapter *pAd,
                             struct rt_mac_table_entry *pEntry,
@@ -976,8 +977,8 @@ int STASendPacket(struct rt_rtmp_adapter *pAd, void *pPacket)
 
        if (!pEntry) {
                DBGPRINT(RT_DEBUG_ERROR,
-                        ("STASendPacket->Cannot find pEntry(%2x:%2x:%2x:%2x:%2x:%2x) in MacTab!\n",
-                         PRINT_MAC(pSrcBufVA)));
+                       ("STASendPacket->Cannot find pEntry(%pM) in MacTab!\n",
+                               pSrcBufVA));
                /* Resourece is low, system did not allocate virtual address */
                /* return NDIS_STATUS_FAILURE directly to upper layer */
                RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_FAILURE);