MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / usb / net / Zydas / zdturbo_burst.c
blob605ee8a9f8092533c2617d454c305b11cdea2719
1 #if ZDCONF_LP_SUPPORT == 1
2 #include "zd1205.h"
3 #include "zdglobal.h"
4 extern Hash_t *sstByAid[MAX_RECORD];
5 extern zd_80211Obj_t dot11Obj;
6 static U32 Turbo_Burst_Status = 0;
7 static U32 OLD_B00, OLD_B04,OLD_B10, OLD_B14;
9 BOOLEAN Turbo_getBurst_Status(void)
11 return Turbo_Burst_Status;
13 void Turbo_BurstOn(void)
15 void *reg = dot11Obj.reg;
16 printk("Enter %s\n", __FUNCTION__);
18 OLD_B00 = dot11Obj.GetReg(reg, 0xB00);
19 OLD_B04 = dot11Obj.GetReg(reg, 0xB04);
20 OLD_B10 = dot11Obj.GetReg(reg, 0xB10);
21 OLD_B14 = dot11Obj.GetReg(reg, 0xB14);
23 dot11Obj.SetReg(reg, 0xB00, 0);
24 dot11Obj.SetReg(reg, 0xB04, 0);
25 if(mBssType == AP_BSS)
27 dot11Obj.SetReg(reg, 0xB10, 0x000a0032);
28 dot11Obj.SetReg(reg, 0xB14, 0x00320032);
30 else if(mBssType == INFRASTRUCTURE_BSS)
32 dot11Obj.SetReg(reg, 0xB10, 0x000a000a);
33 dot11Obj.SetReg(reg, 0xB14, 0x000a000a);
38 Turbo_Burst_Status = 1;
41 void Turbo_BurstOff(void)
43 void *reg = dot11Obj.reg;
44 printk("Enter %s\n", __FUNCTION__);
45 dot11Obj.SetReg(reg, 0xB00, OLD_B00);
46 dot11Obj.SetReg(reg, 0xB04, OLD_B04);
47 dot11Obj.SetReg(reg, 0xB10, OLD_B10);
48 dot11Obj.SetReg(reg, 0xB10, OLD_B14);
50 Turbo_Burst_Status = 0;
53 BOOLEAN Turbo_BurstSTA_Check(void)
55 U8 i;
56 for(i=0;i<MAX_RECORD;i++)
57 if(sstByAid[i]->bValid)
58 if(sstByAid[i]->Turbo_Burst)
59 return TRUE;
60 return FALSE;
62 #endif