83 value = pbbreg->
value;
130 value = pbbreg->
value;
161 static int mp_start_test(
struct _adapter *padapter)
174 bssid.Ssid.SsidLength = 16;
175 memcpy(
bssid.Ssid.Ssid, (
unsigned char *)
"mp_pseudo_adhoc",
176 bssid.Ssid.SsidLength);
183 bssid.Length = ((length >> 2) + 1) << 2;
188 goto end_of_mp_start_test;
198 tgt_network->
network.MacAddress);
204 goto end_of_mp_start_test;
208 tgt_network->
aid = psta->
aid = 1;
214 end_of_mp_start_test:
215 spin_unlock_irqrestore(&pmlmepriv->
lock, irqL);
220 static int mp_stop_test(
struct _adapter *padapter)
230 goto end_of_mp_stop_test;
235 tgt_network->
network.MacAddress);
243 spin_unlock_irqrestore(&pmlmepriv->
lock, irqL);
255 if (check_fwstate(pmlmepriv,
_FW_LINKED) ==
false)
278 Adapter->
mppriv.curr_rateidx = ratevalue;
295 if (mp_start_test(Adapter) ==
_FAIL)
320 if (mp_stop_test(Adapter) ==
_FAIL)
357 Adapter->
mppriv.antenna_tx = (
u16)((antenna & 0xFFFF0000) >> 16);
358 Adapter->
mppriv.antenna_rx = (
u16)(antenna & 0x0000FFFF);
378 Adapter->
mppriv.curr_txpoweridx = (
u8)tx_pwr_idx;
396 Adapter->
mppriv.tx_pktcount;
416 Adapter->
mppriv.rx_pktcount;
436 Adapter->
mppriv.rx_crcerrpktcount;
451 Adapter->
mppriv.tx_pktcount = 0;
465 Adapter->
mppriv.rx_pktcount = 0;
466 Adapter->
mppriv.rx_crcerrpktcount = 0;
617 if ((RegRWStruct->
offset >= 0x10250800) &&
618 (RegRWStruct->
offset <= 0x10250FFF)) {
621 offset = (
u16)(RegRWStruct->
offset) & 0xFFF;
624 switch (RegRWStruct->
width) {
659 if ((RegRWStruct->
offset >= 0x10250800) &&
660 (RegRWStruct->
offset <= 0x10250FFF)) {
662 offset = (
u16)(RegRWStruct->
offset) & 0xFFF;
663 value = RegRWStruct->
value;
664 switch (RegRWStruct->
width) {
667 oldValue &= 0xFFFFFF00;
673 oldValue &= 0xFFFF0000;
680 switch (RegRWStruct->
width) {
683 (
unsigned char)RegRWStruct->
value);
687 (
unsigned short)RegRWStruct->
value);
691 (
unsigned int)RegRWStruct->
value);
700 (RegRWStruct->
width == 4))
782 if (Adapter->
mppriv.workparam.bcompleted ==
false)
787 Adapter->
mppriv.act_in_progress =
false;
802 Adapter->
mppriv.rx_pktloss = 0;
804 Adapter->
mppriv.rx_pktloss;
846 (
unsigned char *)&Adapter->
mppriv.rxstat,
882 if (Adapter->
mppriv.act_in_progress ==
true)
888 Adapter->
mppriv.act_in_progress =
true;
889 Adapter->
mppriv.workparam.bcompleted =
false;
891 Adapter->
mppriv.workparam.io_offset = 0;
892 Adapter->
mppriv.workparam.io_value = 0xFFFFFFFF;
894 Adapter->
mppriv.workparam.bcompleted =
true;
895 Adapter->
mppriv.act_in_progress =
false;
897 Adapter->
mppriv.workparam.io_value;
922 u8 mpdatarate[
NumRates] = {11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0xff};
932 if (ratevalue == mpdatarate[i])
933 datarates[
i] = mpdatarate[
i];
962 uint pwr_mode, smart_ps;
972 if (pwr_mode != Adapter->
pwrctrlpriv.pwr_mode || smart_ps !=
1023 switch (encry_mode) {
1045 else if ((psecuritypriv->
sw_encrypt ==
false) &&
1048 else if ((psecuritypriv->
sw_encrypt ==
true) &&
1051 else if ((psecuritypriv->
sw_encrypt ==
true) &&
1112 spin_unlock_irqrestore(&(Adapter->
stapriv.sta_hash_lock), irqL);
1169 data = pefuse->
data;
1171 if ((addr > 511) || (cnts < 1) || (cnts > 512) || (addr +
cnts) >
1197 data = pefuse->
data;
1199 if ((addr > 511) || (cnts < 1) || (cnts > 512) ||
1220 ppgpkt->
data) ==
true)
1332 Adapter->
mppriv.curr_bandwidth = (
u8)bandwidth;
1342 u32 crystal_cap = 0;
1349 if (crystal_cap > 0xf)
1351 Adapter->
mppriv.curr_crystalcap = crystal_cap;
1371 switch (rx_pkt_type) {
1390 Adapter->
mppriv.check_mp_pkt = 1;
1392 Adapter->
mppriv.check_mp_pkt = 0;