@@ -235,7 +235,8 @@ BOOL KeybSetKey(
235235 PSKeyItem pKey ;
236236 unsigned int uKeyIdx ;
237237
238- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Enter KeybSetKey: %lX\n" , dwKeyIndex );
238+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO
239+ "Enter KeybSetKey: %X\n" , dwKeyIndex );
239240
240241 j = (MAX_KEY_TABLE - 1 );
241242 for (i = 0 ;i < (MAX_KEY_TABLE - 1 );i ++ ) {
@@ -261,7 +262,9 @@ BOOL KeybSetKey(
261262 if ((dwKeyIndex & TRANSMIT_KEY ) != 0 ) {
262263 // Group transmit key
263264 pTable -> KeyTable [i ].dwGTKeyIndex = dwKeyIndex ;
264- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Group transmit key(R)[%lX]: %d\n" , pTable -> KeyTable [i ].dwGTKeyIndex , i );
265+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO
266+ "Group transmit key(R)[%X]: %d\n" ,
267+ pTable -> KeyTable [i ].dwGTKeyIndex , i );
265268 }
266269 pTable -> KeyTable [i ].wKeyCtl &= 0xFF0F ; // clear group key control filed
267270 pTable -> KeyTable [i ].wKeyCtl |= (byKeyDecMode << 4 );
@@ -302,9 +305,12 @@ BOOL KeybSetKey(
302305 }
303306 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "\n" );
304307
305- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %lx\n " , pKey -> dwTSC47_16 );
306- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->wTSC15_0: %x\n " , pKey -> wTSC15_0 );
307- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %lx\n " , pKey -> dwKeyIndex );
308+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %x\n " ,
309+ pKey -> dwTSC47_16 );
310+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->wTSC15_0: %x\n " ,
311+ pKey -> wTSC15_0 );
312+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %x\n " ,
313+ pKey -> dwKeyIndex );
308314
309315 return (TRUE);
310316 }
@@ -326,7 +332,9 @@ BOOL KeybSetKey(
326332 if ((dwKeyIndex & TRANSMIT_KEY ) != 0 ) {
327333 // Group transmit key
328334 pTable -> KeyTable [j ].dwGTKeyIndex = dwKeyIndex ;
329- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Group transmit key(N)[%lX]: %d\n" , pTable -> KeyTable [j ].dwGTKeyIndex , j );
335+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO
336+ "Group transmit key(N)[%X]: %d\n" ,
337+ pTable -> KeyTable [j ].dwGTKeyIndex , j );
330338 }
331339 pTable -> KeyTable [j ].wKeyCtl &= 0xFF0F ; // clear group key control filed
332340 pTable -> KeyTable [j ].wKeyCtl |= (byKeyDecMode << 4 );
@@ -367,9 +375,11 @@ BOOL KeybSetKey(
367375 }
368376 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "\n" );
369377
370- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %lx\n " , pKey -> dwTSC47_16 );
378+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %x\n " ,
379+ pKey -> dwTSC47_16 );
371380 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->wTSC15_0: %x\n " , pKey -> wTSC15_0 );
372- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %lx\n " , pKey -> dwKeyIndex );
381+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %x\n " ,
382+ pKey -> dwKeyIndex );
373383
374384 return (TRUE);
375385 }
@@ -597,7 +607,8 @@ BOOL KeybGetTransmitKey(PSKeyManagement pTable, PBYTE pbyBSSID, DWORD dwKeyType,
597607 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "%x " , pTable -> KeyTable [i ].abyBSSID [ii ]);
598608 }
599609 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "\n" );
600- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "dwGTKeyIndex: %lX\n" , pTable -> KeyTable [i ].dwGTKeyIndex );
610+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "dwGTKeyIndex: %X\n" ,
611+ pTable -> KeyTable [i ].dwGTKeyIndex );
601612
602613 return (TRUE);
603614 }
@@ -696,7 +707,10 @@ BOOL KeybSetDefaultKey(
696707 if ((dwKeyIndex & TRANSMIT_KEY ) != 0 ) {
697708 // Group transmit key
698709 pTable -> KeyTable [MAX_KEY_TABLE - 1 ].dwGTKeyIndex = dwKeyIndex ;
699- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Group transmit key(R)[%lX]: %d\n" , pTable -> KeyTable [MAX_KEY_TABLE - 1 ].dwGTKeyIndex , MAX_KEY_TABLE - 1 );
710+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO
711+ "Group transmit key(R)[%X]: %d\n" ,
712+ pTable -> KeyTable [MAX_KEY_TABLE - 1 ].dwGTKeyIndex ,
713+ MAX_KEY_TABLE - 1 );
700714
701715 }
702716 pTable -> KeyTable [MAX_KEY_TABLE - 1 ].wKeyCtl &= 0x7F00 ; // clear all key control filed
@@ -747,9 +761,11 @@ BOOL KeybSetDefaultKey(
747761 }
748762 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "\n" );
749763
750- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %lx\n" , pKey -> dwTSC47_16 );
764+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwTSC47_16: %x\n" ,
765+ pKey -> dwTSC47_16 );
751766 DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->wTSC15_0: %x\n" , pKey -> wTSC15_0 );
752- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %lx\n" , pKey -> dwKeyIndex );
767+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "pKey->dwKeyIndex: %x\n" ,
768+ pKey -> dwKeyIndex );
753769
754770 return (TRUE);
755771}
@@ -787,7 +803,8 @@ BOOL KeybSetAllGroupKey(
787803 PSKeyItem pKey ;
788804 unsigned int uKeyIdx ;
789805
790- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Enter KeybSetAllGroupKey: %lX\n" , dwKeyIndex );
806+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Enter KeybSetAllGroupKey: %X\n" ,
807+ dwKeyIndex );
791808
792809
793810 if ((dwKeyIndex & PAIRWISE_KEY ) != 0 ) { // Pairwise key
@@ -804,7 +821,9 @@ BOOL KeybSetAllGroupKey(
804821 if ((dwKeyIndex & TRANSMIT_KEY ) != 0 ) {
805822 // Group transmit key
806823 pTable -> KeyTable [i ].dwGTKeyIndex = dwKeyIndex ;
807- DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO "Group transmit key(R)[%lX]: %d\n" , pTable -> KeyTable [i ].dwGTKeyIndex , i );
824+ DBG_PRT (MSG_LEVEL_DEBUG , KERN_INFO
825+ "Group transmit key(R)[%X]: %d\n" ,
826+ pTable -> KeyTable [i ].dwGTKeyIndex , i );
808827
809828 }
810829 pTable -> KeyTable [i ].wKeyCtl &= 0xFF0F ; // clear group key control filed
0 commit comments