~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/rtl8192e/ieee80211/ieee80211_crypt_tkip.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
 
325
325
        hdr = (struct ieee80211_hdr_4addr *) skb->data;
326
326
 
327
 
#if 0
328
 
printk("@@ tkey\n");
329
 
printk("%x|", ((u32*)tkey->key)[0]);
330
 
printk("%x|", ((u32*)tkey->key)[1]);
331
 
printk("%x|", ((u32*)tkey->key)[2]);
332
 
printk("%x|", ((u32*)tkey->key)[3]);
333
 
printk("%x|", ((u32*)tkey->key)[4]);
334
 
printk("%x|", ((u32*)tkey->key)[5]);
335
 
printk("%x|", ((u32*)tkey->key)[6]);
336
 
printk("%x\n", ((u32*)tkey->key)[7]);
337
 
#endif
338
 
 
339
327
        if (!tcb_desc->bHwSec)
340
328
        {
341
329
                if (!tkey->tx_phase1_done) {
512
500
        skb_pull(skb, 8);
513
501
        skb_trim(skb, skb->len - 4);
514
502
 
515
 
//john's test
516
 
#ifdef JOHN_DUMP
517
 
if( ((u16*)skb->data)[0] & 0x4000){
518
 
        printk("@@ rx decrypted skb->data");
519
 
        int i;
520
 
        for(i=0;i<skb->len;i++){
521
 
                if( (i%24)==0 ) printk("\n");
522
 
                printk("%2x ", ((u8*)skb->data)[i]);
523
 
        }
524
 
        printk("\n");
525
 
}
526
 
#endif /*JOHN_DUMP*/
527
503
        return keyidx;
528
504
}
529
505
 
829
805
 
830
806
void ieee80211_tkip_null(void)
831
807
{
832
 
//    printk("============>%s()\n", __FUNCTION__);
833
808
        return;
834
809
}
835
810