aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r--drivers/net/wireless/rtlwifi/base.c5
-rw-r--r--drivers/net/wireless/rtlwifi/core.c8
-rw-r--r--drivers/net/wireless/rtlwifi/efuse.c106
-rw-r--r--drivers/net/wireless/rtlwifi/pci.c53
-rw-r--r--drivers/net/wireless/rtlwifi/pci.h4
-rw-r--r--drivers/net/wireless/rtlwifi/ps.c3
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c38
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192ce/trx.h4
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192cu/trx.c2
-rw-r--r--drivers/net/wireless/rtlwifi/wifi.h18
10 files changed, 101 insertions, 140 deletions
diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c
index bb0c781f4a1..dd5318ed787 100644
--- a/drivers/net/wireless/rtlwifi/base.c
+++ b/drivers/net/wireless/rtlwifi/base.c
@@ -432,7 +432,7 @@ static void _rtl_txrate_selectmode(struct ieee80211_hw *hw,
432 } 432 }
433 433
434 if (rtlpriv->dm.useramask) { 434 if (rtlpriv->dm.useramask) {
435 /* TODO we will differentiate adhoc and station futrue */ 435 /* TODO adhoc and station handled differently in the future */
436 tcb_desc->mac_id = 0; 436 tcb_desc->mac_id = 0;
437 437
438 if ((mac->mode == WIRELESS_MODE_N_24G) || 438 if ((mac->mode == WIRELESS_MODE_N_24G) ||
@@ -630,7 +630,7 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
630 const struct iphdr *ip; 630 const struct iphdr *ip;
631 631
632 if (!ieee80211_is_data(fc)) 632 if (!ieee80211_is_data(fc))
633 goto end; 633 return false;
634 634
635 if (ieee80211_is_nullfunc(fc)) 635 if (ieee80211_is_nullfunc(fc))
636 return true; 636 return true;
@@ -686,7 +686,6 @@ u8 rtl_is_special_data(struct ieee80211_hw *hw, struct sk_buff *skb, u8 is_tx)
686 return true; 686 return true;
687 } 687 }
688 688
689end:
690 return false; 689 return false;
691} 690}
692 691
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c
index e4f4aee8f29..8fed3c68761 100644
--- a/drivers/net/wireless/rtlwifi/core.c
+++ b/drivers/net/wireless/rtlwifi/core.c
@@ -35,7 +35,7 @@
35/*mutex for start & stop is must here. */ 35/*mutex for start & stop is must here. */
36static int rtl_op_start(struct ieee80211_hw *hw) 36static int rtl_op_start(struct ieee80211_hw *hw)
37{ 37{
38 int err = 0; 38 int err;
39 struct rtl_priv *rtlpriv = rtl_priv(hw); 39 struct rtl_priv *rtlpriv = rtl_priv(hw);
40 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); 40 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
41 41
@@ -45,10 +45,8 @@ static int rtl_op_start(struct ieee80211_hw *hw)
45 return 0; 45 return 0;
46 mutex_lock(&rtlpriv->locks.conf_mutex); 46 mutex_lock(&rtlpriv->locks.conf_mutex);
47 err = rtlpriv->intf_ops->adapter_start(hw); 47 err = rtlpriv->intf_ops->adapter_start(hw);
48 if (err) 48 if (!err)
49 goto out; 49 rtl_watch_dog_timer_callback((unsigned long)hw);
50 rtl_watch_dog_timer_callback((unsigned long)hw);
51out:
52 mutex_unlock(&rtlpriv->locks.conf_mutex); 50 mutex_unlock(&rtlpriv->locks.conf_mutex);
53 return err; 51 return err;
54} 52}
diff --git a/drivers/net/wireless/rtlwifi/efuse.c b/drivers/net/wireless/rtlwifi/efuse.c
index 590f14f45a8..5d73c0f7012 100644
--- a/drivers/net/wireless/rtlwifi/efuse.c
+++ b/drivers/net/wireless/rtlwifi/efuse.c
@@ -338,11 +338,11 @@ bool efuse_shadow_update_chk(struct ieee80211_hw *hw)
338 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); 338 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
339 u8 section_idx, i, Base; 339 u8 section_idx, i, Base;
340 u16 words_need = 0, hdr_num = 0, totalbytes, efuse_used; 340 u16 words_need = 0, hdr_num = 0, totalbytes, efuse_used;
341 bool bwordchanged, bresult = true; 341 bool wordchanged, result = true;
342 342
343 for (section_idx = 0; section_idx < 16; section_idx++) { 343 for (section_idx = 0; section_idx < 16; section_idx++) {
344 Base = section_idx * 8; 344 Base = section_idx * 8;
345 bwordchanged = false; 345 wordchanged = false;
346 346
347 for (i = 0; i < 8; i = i + 2) { 347 for (i = 0; i < 8; i = i + 2) {
348 if ((rtlefuse->efuse_map[EFUSE_INIT_MAP][Base + i] != 348 if ((rtlefuse->efuse_map[EFUSE_INIT_MAP][Base + i] !=
@@ -351,11 +351,11 @@ bool efuse_shadow_update_chk(struct ieee80211_hw *hw)
351 rtlefuse->efuse_map[EFUSE_MODIFY_MAP][Base + i + 351 rtlefuse->efuse_map[EFUSE_MODIFY_MAP][Base + i +
352 1])) { 352 1])) {
353 words_need++; 353 words_need++;
354 bwordchanged = true; 354 wordchanged = true;
355 } 355 }
356 } 356 }
357 357
358 if (bwordchanged == true) 358 if (wordchanged == true)
359 hdr_num++; 359 hdr_num++;
360 } 360 }
361 361
@@ -364,14 +364,14 @@ bool efuse_shadow_update_chk(struct ieee80211_hw *hw)
364 364
365 if ((totalbytes + efuse_used) >= 365 if ((totalbytes + efuse_used) >=
366 (EFUSE_MAX_SIZE - EFUSE_OOB_PROTECT_BYTES)) 366 (EFUSE_MAX_SIZE - EFUSE_OOB_PROTECT_BYTES))
367 bresult = false; 367 result = false;
368 368
369 RT_TRACE(rtlpriv, COMP_EFUSE, DBG_LOUD, 369 RT_TRACE(rtlpriv, COMP_EFUSE, DBG_LOUD,
370 ("efuse_shadow_update_chk(): totalbytes(%#x), " 370 ("efuse_shadow_update_chk(): totalbytes(%#x), "
371 "hdr_num(%#x), words_need(%#x), efuse_used(%d)\n", 371 "hdr_num(%#x), words_need(%#x), efuse_used(%d)\n",
372 totalbytes, hdr_num, words_need, efuse_used)); 372 totalbytes, hdr_num, words_need, efuse_used));
373 373
374 return bresult; 374 return result;
375} 375}
376 376
377void efuse_shadow_read(struct ieee80211_hw *hw, u8 type, 377void efuse_shadow_read(struct ieee80211_hw *hw, u8 type,
@@ -394,7 +394,7 @@ void efuse_shadow_write(struct ieee80211_hw *hw, u8 type, u16 offset,
394 else if (type == 2) 394 else if (type == 2)
395 efuse_shadow_write_2byte(hw, offset, (u16) value); 395 efuse_shadow_write_2byte(hw, offset, (u16) value);
396 else if (type == 4) 396 else if (type == 4)
397 efuse_shadow_write_4byte(hw, offset, (u32) value); 397 efuse_shadow_write_4byte(hw, offset, value);
398 398
399} 399}
400 400
@@ -572,7 +572,7 @@ static int efuse_one_byte_read(struct ieee80211_hw *hw, u16 addr, u8 *data)
572{ 572{
573 struct rtl_priv *rtlpriv = rtl_priv(hw); 573 struct rtl_priv *rtlpriv = rtl_priv(hw);
574 u8 tmpidx = 0; 574 u8 tmpidx = 0;
575 int bresult; 575 int result;
576 576
577 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL] + 1, 577 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL] + 1,
578 (u8) (addr & 0xff)); 578 (u8) (addr & 0xff));
@@ -592,19 +592,18 @@ static int efuse_one_byte_read(struct ieee80211_hw *hw, u16 addr, u8 *data)
592 592
593 if (tmpidx < 100) { 593 if (tmpidx < 100) {
594 *data = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL]); 594 *data = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL]);
595 bresult = true; 595 result = true;
596 } else { 596 } else {
597 *data = 0xff; 597 *data = 0xff;
598 bresult = false; 598 result = false;
599 } 599 }
600 return bresult; 600 return result;
601} 601}
602 602
603static int efuse_one_byte_write(struct ieee80211_hw *hw, u16 addr, u8 data) 603static int efuse_one_byte_write(struct ieee80211_hw *hw, u16 addr, u8 data)
604{ 604{
605 struct rtl_priv *rtlpriv = rtl_priv(hw); 605 struct rtl_priv *rtlpriv = rtl_priv(hw);
606 u8 tmpidx = 0; 606 u8 tmpidx = 0;
607 bool bresult;
608 607
609 RT_TRACE(rtlpriv, COMP_EFUSE, DBG_LOUD, 608 RT_TRACE(rtlpriv, COMP_EFUSE, DBG_LOUD,
610 ("Addr = %x Data=%x\n", addr, data)); 609 ("Addr = %x Data=%x\n", addr, data));
@@ -626,11 +625,9 @@ static int efuse_one_byte_write(struct ieee80211_hw *hw, u16 addr, u8 data)
626 } 625 }
627 626
628 if (tmpidx < 100) 627 if (tmpidx < 100)
629 bresult = true; 628 return true;
630 else
631 bresult = false;
632 629
633 return bresult; 630 return false;
634} 631}
635 632
636static void efuse_read_all_map(struct ieee80211_hw *hw, u8 * efuse) 633static void efuse_read_all_map(struct ieee80211_hw *hw, u8 * efuse)
@@ -681,11 +678,10 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
681{ 678{
682 u8 readstate = PG_STATE_HEADER; 679 u8 readstate = PG_STATE_HEADER;
683 680
684 bool bcontinual = true; 681 bool continual = true;
685 682
686 u8 efuse_data, word_cnts = 0; 683 u8 efuse_data, word_cnts = 0;
687 u16 efuse_addr = 0; 684 u16 efuse_addr = 0;
688 u8 hworden = 0;
689 u8 tmpdata[8]; 685 u8 tmpdata[8];
690 686
691 if (data == NULL) 687 if (data == NULL)
@@ -696,7 +692,7 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
696 memset(data, 0xff, PGPKT_DATA_SIZE * sizeof(u8)); 692 memset(data, 0xff, PGPKT_DATA_SIZE * sizeof(u8));
697 memset(tmpdata, 0xff, PGPKT_DATA_SIZE * sizeof(u8)); 693 memset(tmpdata, 0xff, PGPKT_DATA_SIZE * sizeof(u8));
698 694
699 while (bcontinual && (efuse_addr < EFUSE_MAX_SIZE)) { 695 while (continual && (efuse_addr < EFUSE_MAX_SIZE)) {
700 if (readstate & PG_STATE_HEADER) { 696 if (readstate & PG_STATE_HEADER) {
701 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data) 697 if (efuse_one_byte_read(hw, efuse_addr, &efuse_data)
702 && (efuse_data != 0xFF)) 698 && (efuse_data != 0xFF))
@@ -705,9 +701,9 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
705 offset, tmpdata, 701 offset, tmpdata,
706 &readstate); 702 &readstate);
707 else 703 else
708 bcontinual = false; 704 continual = false;
709 } else if (readstate & PG_STATE_DATA) { 705 } else if (readstate & PG_STATE_DATA) {
710 efuse_word_enable_data_read(hworden, tmpdata, data); 706 efuse_word_enable_data_read(0, tmpdata, data);
711 efuse_addr = efuse_addr + (word_cnts * 2) + 1; 707 efuse_addr = efuse_addr + (word_cnts * 2) + 1;
712 readstate = PG_STATE_HEADER; 708 readstate = PG_STATE_HEADER;
713 } 709 }
@@ -725,13 +721,13 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)
725} 721}
726 722
727static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr, 723static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr,
728 u8 efuse_data, u8 offset, int *bcontinual, 724 u8 efuse_data, u8 offset, int *continual,
729 u8 *write_state, struct pgpkt_struct *target_pkt, 725 u8 *write_state, struct pgpkt_struct *target_pkt,
730 int *repeat_times, int *bresult, u8 word_en) 726 int *repeat_times, int *result, u8 word_en)
731{ 727{
732 struct rtl_priv *rtlpriv = rtl_priv(hw); 728 struct rtl_priv *rtlpriv = rtl_priv(hw);
733 struct pgpkt_struct tmp_pkt; 729 struct pgpkt_struct tmp_pkt;
734 int bdataempty = true; 730 bool dataempty = true;
735 u8 originaldata[8 * sizeof(u8)]; 731 u8 originaldata[8 * sizeof(u8)];
736 u8 badworden = 0x0F; 732 u8 badworden = 0x0F;
737 u8 match_word_en, tmp_word_en; 733 u8 match_word_en, tmp_word_en;
@@ -751,10 +747,10 @@ static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr,
751 u16 address = *efuse_addr + 1 + tmpindex; 747 u16 address = *efuse_addr + 1 + tmpindex;
752 if (efuse_one_byte_read(hw, address, 748 if (efuse_one_byte_read(hw, address,
753 &efuse_data) && (efuse_data != 0xFF)) 749 &efuse_data) && (efuse_data != 0xFF))
754 bdataempty = false; 750 dataempty = false;
755 } 751 }
756 752
757 if (bdataempty == false) { 753 if (dataempty == false) {
758 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1; 754 *efuse_addr = *efuse_addr + (tmp_word_cnts * 2) + 1;
759 *write_state = PG_STATE_HEADER; 755 *write_state = PG_STATE_HEADER;
760 } else { 756 } else {
@@ -811,12 +807,12 @@ static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr,
811 target_pkt->offset = offset; 807 target_pkt->offset = offset;
812 target_pkt->word_en = tmp_word_en; 808 target_pkt->word_en = tmp_word_en;
813 } else 809 } else
814 *bcontinual = false; 810 *continual = false;
815 *write_state = PG_STATE_HEADER; 811 *write_state = PG_STATE_HEADER;
816 *repeat_times += 1; 812 *repeat_times += 1;
817 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) { 813 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) {
818 *bcontinual = false; 814 *continual = false;
819 *bresult = false; 815 *result = false;
820 } 816 }
821 } else { 817 } else {
822 *efuse_addr += (2 * tmp_word_cnts) + 1; 818 *efuse_addr += (2 * tmp_word_cnts) + 1;
@@ -830,9 +826,9 @@ static void efuse_write_data_case1(struct ieee80211_hw *hw, u16 *efuse_addr,
830} 826}
831 827
832static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr, 828static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr,
833 int *bcontinual, u8 *write_state, 829 int *continual, u8 *write_state,
834 struct pgpkt_struct target_pkt, 830 struct pgpkt_struct target_pkt,
835 int *repeat_times, int *bresult) 831 int *repeat_times, int *result)
836{ 832{
837 struct rtl_priv *rtlpriv = rtl_priv(hw); 833 struct rtl_priv *rtlpriv = rtl_priv(hw);
838 struct pgpkt_struct tmp_pkt; 834 struct pgpkt_struct tmp_pkt;
@@ -852,8 +848,8 @@ static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr,
852 *write_state = PG_STATE_HEADER; 848 *write_state = PG_STATE_HEADER;
853 *repeat_times += 1; 849 *repeat_times += 1;
854 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) { 850 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) {
855 *bcontinual = false; 851 *continual = false;
856 *bresult = false; 852 *result = false;
857 } 853 }
858 } else { 854 } else {
859 tmp_pkt.offset = (tmp_header >> 4) & 0x0F; 855 tmp_pkt.offset = (tmp_header >> 4) & 0x0F;
@@ -884,8 +880,8 @@ static void efuse_write_data_case2(struct ieee80211_hw *hw, u16 *efuse_addr,
884 *write_state = PG_STATE_HEADER; 880 *write_state = PG_STATE_HEADER;
885 *repeat_times += 1; 881 *repeat_times += 1;
886 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) { 882 if (*repeat_times > EFUSE_REPEAT_THRESHOLD_) {
887 *bcontinual = false; 883 *continual = false;
888 *bresult = false; 884 *result = false;
889 } 885 }
890 886
891 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, 887 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG,
@@ -899,7 +895,7 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
899 struct rtl_priv *rtlpriv = rtl_priv(hw); 895 struct rtl_priv *rtlpriv = rtl_priv(hw);
900 struct pgpkt_struct target_pkt; 896 struct pgpkt_struct target_pkt;
901 u8 write_state = PG_STATE_HEADER; 897 u8 write_state = PG_STATE_HEADER;
902 int bcontinual = true, bdataempty = true, bresult = true; 898 int continual = true, dataempty = true, result = true;
903 u16 efuse_addr = 0; 899 u16 efuse_addr = 0;
904 u8 efuse_data; 900 u8 efuse_data;
905 u8 target_word_cnts = 0; 901 u8 target_word_cnts = 0;
@@ -923,11 +919,11 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
923 919
924 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, ("efuse Power ON\n")); 920 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, ("efuse Power ON\n"));
925 921
926 while (bcontinual && (efuse_addr < 922 while (continual && (efuse_addr <
927 (EFUSE_MAX_SIZE - EFUSE_OOB_PROTECT_BYTES))) { 923 (EFUSE_MAX_SIZE - EFUSE_OOB_PROTECT_BYTES))) {
928 924
929 if (write_state == PG_STATE_HEADER) { 925 if (write_state == PG_STATE_HEADER) {
930 bdataempty = true; 926 dataempty = true;
931 badworden = 0x0F; 927 badworden = 0x0F;
932 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, 928 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG,
933 ("efuse PG_STATE_HEADER\n")); 929 ("efuse PG_STATE_HEADER\n"));
@@ -936,32 +932,30 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
936 (efuse_data != 0xFF)) 932 (efuse_data != 0xFF))
937 efuse_write_data_case1(hw, &efuse_addr, 933 efuse_write_data_case1(hw, &efuse_addr,
938 efuse_data, offset, 934 efuse_data, offset,
939 &bcontinual, 935 &continual,
940 &write_state, &target_pkt, 936 &write_state, &target_pkt,
941 &repeat_times, &bresult, 937 &repeat_times, &result,
942 word_en); 938 word_en);
943 else 939 else
944 efuse_write_data_case2(hw, &efuse_addr, 940 efuse_write_data_case2(hw, &efuse_addr,
945 &bcontinual, 941 &continual,
946 &write_state, 942 &write_state,
947 target_pkt, 943 target_pkt,
948 &repeat_times, 944 &repeat_times,
949 &bresult); 945 &result);
950 946
951 } else if (write_state == PG_STATE_DATA) { 947 } else if (write_state == PG_STATE_DATA) {
952 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, 948 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG,
953 ("efuse PG_STATE_DATA\n")); 949 ("efuse PG_STATE_DATA\n"));
954 badworden = 0x0f;
955 badworden = 950 badworden =
956 efuse_word_enable_data_write(hw, efuse_addr + 1, 951 efuse_word_enable_data_write(hw, efuse_addr + 1,
957 target_pkt.word_en, 952 target_pkt.word_en,
958 target_pkt.data); 953 target_pkt.data);
959 954
960 if ((badworden & 0x0F) == 0x0F) { 955 if ((badworden & 0x0F) == 0x0F) {
961 bcontinual = false; 956 continual = false;
962 } else { 957 } else {
963 efuse_addr = 958 efuse_addr += (2 * target_word_cnts) + 1;
964 efuse_addr + (2 * target_word_cnts) + 1;
965 959
966 target_pkt.offset = offset; 960 target_pkt.offset = offset;
967 target_pkt.word_en = badworden; 961 target_pkt.word_en = badworden;
@@ -971,8 +965,8 @@ static int efuse_pg_packet_write(struct ieee80211_hw *hw,
971 write_state = PG_STATE_HEADER; 965 write_state = PG_STATE_HEADER;
972 repeat_times++; 966 repeat_times++;
973 if (repeat_times > EFUSE_REPEAT_THRESHOLD_) { 967 if (repeat_times > EFUSE_REPEAT_THRESHOLD_) {
974 bcontinual = false; 968 continual = false;
975 bresult = false; 969 result = false;
976 } 970 }
977 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG, 971 RTPRINT(rtlpriv, FEEPROM, EFUSE_PG,
978 ("efuse PG_STATE_HEADER-3\n")); 972 ("efuse PG_STATE_HEADER-3\n"));
@@ -1072,13 +1066,13 @@ static u8 efuse_word_enable_data_write(struct ieee80211_hw *hw,
1072 return badworden; 1066 return badworden;
1073} 1067}
1074 1068
1075static void efuse_power_switch(struct ieee80211_hw *hw, u8 bwrite, u8 pwrstate) 1069static void efuse_power_switch(struct ieee80211_hw *hw, u8 write, u8 pwrstate)
1076{ 1070{
1077 struct rtl_priv *rtlpriv = rtl_priv(hw); 1071 struct rtl_priv *rtlpriv = rtl_priv(hw);
1078 u8 tempval; 1072 u8 tempval;
1079 u16 tmpV16; 1073 u16 tmpV16;
1080 1074
1081 if (pwrstate == true) { 1075 if (pwrstate) {
1082 tmpV16 = rtl_read_word(rtlpriv, 1076 tmpV16 = rtl_read_word(rtlpriv,
1083 rtlpriv->cfg->maps[SYS_ISO_CTRL]); 1077 rtlpriv->cfg->maps[SYS_ISO_CTRL]);
1084 if (!(tmpV16 & rtlpriv->cfg->maps[EFUSE_PWC_EV12V])) { 1078 if (!(tmpV16 & rtlpriv->cfg->maps[EFUSE_PWC_EV12V])) {
@@ -1106,8 +1100,8 @@ static void efuse_power_switch(struct ieee80211_hw *hw, u8 bwrite, u8 pwrstate)
1106 } 1100 }
1107 } 1101 }
1108 1102
1109 if (pwrstate == true) { 1103 if (pwrstate) {
1110 if (bwrite == true) { 1104 if (write) {
1111 tempval = rtl_read_byte(rtlpriv, 1105 tempval = rtl_read_byte(rtlpriv,
1112 rtlpriv->cfg->maps[EFUSE_TEST] + 1106 rtlpriv->cfg->maps[EFUSE_TEST] +
1113 3); 1107 3);
@@ -1119,7 +1113,7 @@ static void efuse_power_switch(struct ieee80211_hw *hw, u8 bwrite, u8 pwrstate)
1119 } 1113 }
1120 1114
1121 } else { 1115 } else {
1122 if (bwrite == true) { 1116 if (write) {
1123 tempval = rtl_read_byte(rtlpriv, 1117 tempval = rtl_read_byte(rtlpriv,
1124 rtlpriv->cfg->maps[EFUSE_TEST] + 1118 rtlpriv->cfg->maps[EFUSE_TEST] +
1125 3); 1119 3);
@@ -1134,12 +1128,12 @@ static void efuse_power_switch(struct ieee80211_hw *hw, u8 bwrite, u8 pwrstate)
1134 1128
1135static u16 efuse_get_current_size(struct ieee80211_hw *hw) 1129static u16 efuse_get_current_size(struct ieee80211_hw *hw)
1136{ 1130{
1137 int bcontinual = true; 1131 int continual = true;
1138 u16 efuse_addr = 0; 1132 u16 efuse_addr = 0;
1139 u8 hoffset, hworden; 1133 u8 hoffset, hworden;
1140 u8 efuse_data, word_cnts; 1134 u8 efuse_data, word_cnts;
1141 1135
1142 while (bcontinual && efuse_one_byte_read(hw, efuse_addr, &efuse_data) 1136 while (continual && efuse_one_byte_read(hw, efuse_addr, &efuse_data)
1143 && (efuse_addr < EFUSE_MAX_SIZE)) { 1137 && (efuse_addr < EFUSE_MAX_SIZE)) {
1144 if (efuse_data != 0xFF) { 1138 if (efuse_data != 0xFF) {
1145 hoffset = (efuse_data >> 4) & 0x0F; 1139 hoffset = (efuse_data >> 4) & 0x0F;
@@ -1147,7 +1141,7 @@ static u16 efuse_get_current_size(struct ieee80211_hw *hw)
1147 word_cnts = efuse_calculate_word_cnts(hworden); 1141 word_cnts = efuse_calculate_word_cnts(hworden);
1148 efuse_addr = efuse_addr + (word_cnts * 2) + 1; 1142 efuse_addr = efuse_addr + (word_cnts * 2) + 1;
1149 } else { 1143 } else {
1150 bcontinual = false; 1144 continual = false;
1151 } 1145 }
1152 } 1146 }
1153 1147
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c
index 9cd7703c2a3..efded435d59 100644
--- a/drivers/net/wireless/rtlwifi/pci.c
+++ b/drivers/net/wireless/rtlwifi/pci.c
@@ -113,32 +113,19 @@ static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw)
113 113
114 /*Set HW definition to determine if it supports ASPM. */ 114 /*Set HW definition to determine if it supports ASPM. */
115 switch (rtlpci->const_support_pciaspm) { 115 switch (rtlpci->const_support_pciaspm) {
116 case 0:{ 116 case 0:
117 /*Not support ASPM. */ 117 /*Not support ASPM. */
118 bool support_aspm = false; 118 ppsc->support_aspm = false;
119 ppsc->support_aspm = support_aspm; 119 break;
120 break; 120 case 1:
121 } 121 /*Support ASPM. */
122 case 1:{ 122 ppsc->support_aspm = true;
123 /*Support ASPM. */ 123 ppsc->support_backdoor = true;
124 bool support_aspm = true; 124 break;
125 bool support_backdoor = true;
126 ppsc->support_aspm = support_aspm;
127
128 /*if(priv->oem_id == RT_CID_TOSHIBA &&
129 !priv->ndis_adapter.amd_l1_patch)
130 support_backdoor = false; */
131
132 ppsc->support_backdoor = support_backdoor;
133
134 break;
135 }
136 case 2: 125 case 2:
137 /*ASPM value set by chipset. */ 126 /*ASPM value set by chipset. */
138 if (pcibridge_vendor == PCI_BRIDGE_VENDOR_INTEL) { 127 if (pcibridge_vendor == PCI_BRIDGE_VENDOR_INTEL)
139 bool support_aspm = true; 128 ppsc->support_aspm = true;
140 ppsc->support_aspm = support_aspm;
141 }
142 break; 129 break;
143 default: 130 default:
144 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 131 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
@@ -152,13 +139,11 @@ static bool _rtl_pci_platform_switch_device_pci_aspm(
152 u8 value) 139 u8 value)
153{ 140{
154 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); 141 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
155 bool bresult = false;
156 142
157 value |= 0x40; 143 value |= 0x40;
158
159 pci_write_config_byte(rtlpci->pdev, 0x80, value); 144 pci_write_config_byte(rtlpci->pdev, 0x80, value);
160 145
161 return bresult; 146 return false;
162} 147}
163 148
164/*When we set 0x01 to enable clk request. Set 0x0 to disable clk req.*/ 149/*When we set 0x01 to enable clk request. Set 0x0 to disable clk req.*/
@@ -166,14 +151,11 @@ static bool _rtl_pci_switch_clk_req(struct ieee80211_hw *hw, u8 value)
166{ 151{
167 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); 152 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw));
168 u8 buffer; 153 u8 buffer;
169 bool bresult = false;
170 154
171 buffer = value; 155 buffer = value;
172
173 pci_write_config_byte(rtlpci->pdev, 0x81, value); 156 pci_write_config_byte(rtlpci->pdev, 0x81, value);
174 bresult = true;
175 157
176 return bresult; 158 return true;
177} 159}
178 160
179/*Disable RTL8192SE ASPM & Disable Pci Bridge ASPM*/ 161/*Disable RTL8192SE ASPM & Disable Pci Bridge ASPM*/
@@ -191,6 +173,7 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
191 u16 pcibridge_linkctrlreg = pcipriv->ndis_adapter. 173 u16 pcibridge_linkctrlreg = pcipriv->ndis_adapter.
192 pcibridge_linkctrlreg; 174 pcibridge_linkctrlreg;
193 u16 aspmlevel = 0; 175 u16 aspmlevel = 0;
176 u8 tmp_u1b = 0;
194 177
195 if (pcibridge_vendor == PCI_BRIDGE_VENDOR_UNKNOWN) { 178 if (pcibridge_vendor == PCI_BRIDGE_VENDOR_UNKNOWN) {
196 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, 179 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE,
@@ -204,11 +187,8 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
204 _rtl_pci_switch_clk_req(hw, 0x0); 187 _rtl_pci_switch_clk_req(hw, 0x0);
205 } 188 }
206 189
207 if (1) { 190 /*for promising device will in L0 state after an I/O. */
208 /*for promising device will in L0 state after an I/O. */ 191 pci_read_config_byte(rtlpci->pdev, 0x80, &tmp_u1b);
209 u8 tmp_u1b;
210 pci_read_config_byte(rtlpci->pdev, 0x80, &tmp_u1b);
211 }
212 192
213 /*Set corresponding value. */ 193 /*Set corresponding value. */
214 aspmlevel |= BIT(0) | BIT(1); 194 aspmlevel |= BIT(0) | BIT(1);
@@ -224,7 +204,6 @@ static void rtl_pci_disable_aspm(struct ieee80211_hw *hw)
224 rtl_pci_raw_write_port_uchar(PCI_CONF_DATA, pcibridge_linkctrlreg); 204 rtl_pci_raw_write_port_uchar(PCI_CONF_DATA, pcibridge_linkctrlreg);
225 205
226 udelay(50); 206 udelay(50);
227
228} 207}
229 208
230/* 209/*
diff --git a/drivers/net/wireless/rtlwifi/pci.h b/drivers/net/wireless/rtlwifi/pci.h
index 0caa8142972..12747b9c71e 100644
--- a/drivers/net/wireless/rtlwifi/pci.h
+++ b/drivers/net/wireless/rtlwifi/pci.h
@@ -192,8 +192,8 @@ struct rtl_pci {
192 u8 const_devicepci_aspm_setting; 192 u8 const_devicepci_aspm_setting;
193 /*If it supports ASPM, Offset[560h] = 0x40, 193 /*If it supports ASPM, Offset[560h] = 0x40,
194 otherwise Offset[560h] = 0x00. */ 194 otherwise Offset[560h] = 0x00. */
195 bool b_support_aspm; 195 bool support_aspm;
196 bool b_support_backdoor; 196 bool support_backdoor;
197 197
198 /*QOS & EDCA */ 198 /*QOS & EDCA */
199 enum acm_method acm_method; 199 enum acm_method acm_method;
diff --git a/drivers/net/wireless/rtlwifi/ps.c b/drivers/net/wireless/rtlwifi/ps.c
index 6b7e217b6b8..c8395fb0c05 100644
--- a/drivers/net/wireless/rtlwifi/ps.c
+++ b/drivers/net/wireless/rtlwifi/ps.c
@@ -63,7 +63,6 @@ EXPORT_SYMBOL(rtl_ps_enable_nic);
63 63
64bool rtl_ps_disable_nic(struct ieee80211_hw *hw) 64bool rtl_ps_disable_nic(struct ieee80211_hw *hw)
65{ 65{
66 bool status = true;
67 struct rtl_priv *rtlpriv = rtl_priv(hw); 66 struct rtl_priv *rtlpriv = rtl_priv(hw);
68 67
69 /*<1> Stop all timer */ 68 /*<1> Stop all timer */
@@ -75,7 +74,7 @@ bool rtl_ps_disable_nic(struct ieee80211_hw *hw)
75 /*<3> Disable Adapter */ 74 /*<3> Disable Adapter */
76 rtlpriv->cfg->ops->hw_disable(hw); 75 rtlpriv->cfg->ops->hw_disable(hw);
77 76
78 return status; 77 return true;
79} 78}
80EXPORT_SYMBOL(rtl_ps_disable_nic); 79EXPORT_SYMBOL(rtl_ps_disable_nic);
81 80
diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
index 28a6ce3bc23..f107660f545 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
@@ -171,7 +171,6 @@ static void _rtl92c_write_fw(struct ieee80211_hw *hw,
171static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw) 171static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
172{ 172{
173 struct rtl_priv *rtlpriv = rtl_priv(hw); 173 struct rtl_priv *rtlpriv = rtl_priv(hw);
174 int err = -EIO;
175 u32 counter = 0; 174 u32 counter = 0;
176 u32 value32; 175 u32 value32;
177 176
@@ -184,7 +183,7 @@ static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
184 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 183 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
185 ("chksum report faill ! REG_MCUFWDL:0x%08x .\n", 184 ("chksum report faill ! REG_MCUFWDL:0x%08x .\n",
186 value32)); 185 value32));
187 goto exit; 186 return -EIO;
188 } 187 }
189 188
190 RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE, 189 RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE,
@@ -204,8 +203,7 @@ static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
204 ("Polling FW ready success!!" 203 ("Polling FW ready success!!"
205 " REG_MCUFWDL:0x%08x .\n", 204 " REG_MCUFWDL:0x%08x .\n",
206 value32)); 205 value32));
207 err = 0; 206 return 0;
208 goto exit;
209 } 207 }
210 208
211 mdelay(FW_8192C_POLLING_DELAY); 209 mdelay(FW_8192C_POLLING_DELAY);
@@ -214,9 +212,7 @@ static int _rtl92c_fw_free_to_go(struct ieee80211_hw *hw)
214 212
215 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 213 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
216 ("Polling FW ready fail!! REG_MCUFWDL:0x%08x .\n", value32)); 214 ("Polling FW ready fail!! REG_MCUFWDL:0x%08x .\n", value32));
217 215 return -EIO;
218exit:
219 return err;
220} 216}
221 217
222int rtl92c_download_fw(struct ieee80211_hw *hw) 218int rtl92c_download_fw(struct ieee80211_hw *hw)
@@ -226,16 +222,14 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
226 struct rtl92c_firmware_header *pfwheader; 222 struct rtl92c_firmware_header *pfwheader;
227 u8 *pfwdata; 223 u8 *pfwdata;
228 u32 fwsize; 224 u32 fwsize;
229 int err;
230 enum version_8192c version = rtlhal->version; 225 enum version_8192c version = rtlhal->version;
231 const struct firmware *firmware; 226 const struct firmware *firmware;
232 227
233 printk(KERN_INFO "rtl8192cu: Loading firmware file %s\n", 228 printk(KERN_INFO "rtl8192c: Loading firmware file %s\n",
234 rtlpriv->cfg->fw_name); 229 rtlpriv->cfg->fw_name);
235 err = request_firmware(&firmware, rtlpriv->cfg->fw_name, 230 if (request_firmware(&firmware, rtlpriv->cfg->fw_name,
236 rtlpriv->io.dev); 231 rtlpriv->io.dev)) {
237 if (err) { 232 printk(KERN_ERR "rtl8192c: Firmware loading failed\n");
238 printk(KERN_ERR "rtl8192cu: Firmware loading failed\n");
239 return 1; 233 return 1;
240 } 234 }
241 235
@@ -267,8 +261,7 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
267 _rtl92c_write_fw(hw, version, pfwdata, fwsize); 261 _rtl92c_write_fw(hw, version, pfwdata, fwsize);
268 _rtl92c_enable_fw_download(hw, false); 262 _rtl92c_enable_fw_download(hw, false);
269 263
270 err = _rtl92c_fw_free_to_go(hw); 264 if (_rtl92c_fw_free_to_go(hw)) {
271 if (err) {
272 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, 265 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
273 ("Firmware is not ready to run!\n")); 266 ("Firmware is not ready to run!\n"));
274 } else { 267 } else {
@@ -303,7 +296,6 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
303 u16 box_reg, box_extreg; 296 u16 box_reg, box_extreg;
304 u8 u1b_tmp; 297 u8 u1b_tmp;
305 bool isfw_read = false; 298 bool isfw_read = false;
306 u8 buf_index = 0;
307 bool bwrite_sucess = false; 299 bool bwrite_sucess = false;
308 u8 wait_h2c_limmit = 100; 300 u8 wait_h2c_limmit = 100;
309 u8 wait_writeh2c_limmit = 100; 301 u8 wait_writeh2c_limmit = 100;
@@ -414,7 +406,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
414 case 1: 406 case 1:
415 boxcontent[0] &= ~(BIT(7)); 407 boxcontent[0] &= ~(BIT(7));
416 memcpy((u8 *) (boxcontent) + 1, 408 memcpy((u8 *) (boxcontent) + 1,
417 p_cmdbuffer + buf_index, 1); 409 p_cmdbuffer, 1);
418 410
419 for (idx = 0; idx < 4; idx++) { 411 for (idx = 0; idx < 4; idx++) {
420 rtl_write_byte(rtlpriv, box_reg + idx, 412 rtl_write_byte(rtlpriv, box_reg + idx,
@@ -424,7 +416,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
424 case 2: 416 case 2:
425 boxcontent[0] &= ~(BIT(7)); 417 boxcontent[0] &= ~(BIT(7));
426 memcpy((u8 *) (boxcontent) + 1, 418 memcpy((u8 *) (boxcontent) + 1,
427 p_cmdbuffer + buf_index, 2); 419 p_cmdbuffer, 2);
428 420
429 for (idx = 0; idx < 4; idx++) { 421 for (idx = 0; idx < 4; idx++) {
430 rtl_write_byte(rtlpriv, box_reg + idx, 422 rtl_write_byte(rtlpriv, box_reg + idx,
@@ -434,7 +426,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
434 case 3: 426 case 3:
435 boxcontent[0] &= ~(BIT(7)); 427 boxcontent[0] &= ~(BIT(7));
436 memcpy((u8 *) (boxcontent) + 1, 428 memcpy((u8 *) (boxcontent) + 1,
437 p_cmdbuffer + buf_index, 3); 429 p_cmdbuffer, 3);
438 430
439 for (idx = 0; idx < 4; idx++) { 431 for (idx = 0; idx < 4; idx++) {
440 rtl_write_byte(rtlpriv, box_reg + idx, 432 rtl_write_byte(rtlpriv, box_reg + idx,
@@ -444,9 +436,9 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
444 case 4: 436 case 4:
445 boxcontent[0] |= (BIT(7)); 437 boxcontent[0] |= (BIT(7));
446 memcpy((u8 *) (boxextcontent), 438 memcpy((u8 *) (boxextcontent),
447 p_cmdbuffer + buf_index, 2); 439 p_cmdbuffer, 2);
448 memcpy((u8 *) (boxcontent) + 1, 440 memcpy((u8 *) (boxcontent) + 1,
449 p_cmdbuffer + buf_index + 2, 2); 441 p_cmdbuffer + 2, 2);
450 442
451 for (idx = 0; idx < 2; idx++) { 443 for (idx = 0; idx < 2; idx++) {
452 rtl_write_byte(rtlpriv, box_extreg + idx, 444 rtl_write_byte(rtlpriv, box_extreg + idx,
@@ -461,9 +453,9 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
461 case 5: 453 case 5:
462 boxcontent[0] |= (BIT(7)); 454 boxcontent[0] |= (BIT(7));
463 memcpy((u8 *) (boxextcontent), 455 memcpy((u8 *) (boxextcontent),
464 p_cmdbuffer + buf_index, 2); 456 p_cmdbuffer, 2);
465 memcpy((u8 *) (boxcontent) + 1, 457 memcpy((u8 *) (boxcontent) + 1,
466 p_cmdbuffer + buf_index + 2, 3); 458 p_cmdbuffer + 2, 3);
467 459
468 for (idx = 0; idx < 2; idx++) { 460 for (idx = 0; idx < 2; idx++) {
469 rtl_write_byte(rtlpriv, box_extreg + idx, 461 rtl_write_byte(rtlpriv, box_extreg + idx,
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h
index 803adcc80c9..b0b0b13dd0a 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h
+++ b/drivers/net/wireless/rtlwifi/rtl8192ce/trx.h
@@ -532,9 +532,9 @@
532#define CLEAR_PCI_TX_DESC_CONTENT(__pdesc, _size) \ 532#define CLEAR_PCI_TX_DESC_CONTENT(__pdesc, _size) \
533do { \ 533do { \
534 if (_size > TX_DESC_NEXT_DESC_OFFSET) \ 534 if (_size > TX_DESC_NEXT_DESC_OFFSET) \
535 memset((void *)__pdesc, 0, TX_DESC_NEXT_DESC_OFFSET); \ 535 memset(__pdesc, 0, TX_DESC_NEXT_DESC_OFFSET); \
536 else \ 536 else \
537 memset((void *)__pdesc, 0, _size); \ 537 memset(__pdesc, 0, _size); \
538} while (0); 538} while (0);
539 539
540#define RX_HAL_IS_CCK_RATE(_pdesc)\ 540#define RX_HAL_IS_CCK_RATE(_pdesc)\
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
index d0b0d43b9a6..3f0cb81c424 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/trx.c
@@ -656,7 +656,7 @@ void rtl92cu_tx_fill_cmddesc(struct ieee80211_hw *hw,
656 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)(skb->data); 656 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)(skb->data);
657 __le16 fc = hdr->frame_control; 657 __le16 fc = hdr->frame_control;
658 658
659 memset((void *)pdesc, 0, RTL_TX_HEADER_SIZE); 659 memset(pdesc, 0, RTL_TX_HEADER_SIZE);
660 if (firstseg) 660 if (firstseg)
661 SET_TX_DESC_OFFSET(pdesc, RTL_TX_HEADER_SIZE); 661 SET_TX_DESC_OFFSET(pdesc, RTL_TX_HEADER_SIZE);
662 SET_TX_DESC_TX_RATE(pdesc, DESC92C_RATE1M); 662 SET_TX_DESC_TX_RATE(pdesc, DESC92C_RATE1M);
diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h
index 01226f8e70f..4ce4853975f 100644
--- a/drivers/net/wireless/rtlwifi/wifi.h
+++ b/drivers/net/wireless/rtlwifi/wifi.h
@@ -766,7 +766,7 @@ struct rtl_rfkill {
766#define IQK_MATRIX_REG_NUM 8 766#define IQK_MATRIX_REG_NUM 8
767#define IQK_MATRIX_SETTINGS_NUM (1 + 24 + 21) 767#define IQK_MATRIX_SETTINGS_NUM (1 + 24 + 21)
768struct iqk_matrix_regs { 768struct iqk_matrix_regs {
769 bool b_iqk_done; 769 bool iqk_done;
770 long value[1][IQK_MATRIX_REG_NUM]; 770 long value[1][IQK_MATRIX_REG_NUM];
771}; 771};
772 772
@@ -1621,19 +1621,19 @@ struct bt_coexist_info {
1621 u32 bt_edca_ul; 1621 u32 bt_edca_ul;
1622 u32 bt_edca_dl; 1622 u32 bt_edca_dl;
1623 1623
1624 bool b_init_set; 1624 bool init_set;
1625 bool b_bt_busy_traffic; 1625 bool bt_busy_traffic;
1626 bool b_bt_traffic_mode_set; 1626 bool bt_traffic_mode_set;
1627 bool b_bt_non_traffic_mode_set; 1627 bool bt_non_traffic_mode_set;
1628 1628
1629 bool b_fw_coexist_all_off; 1629 bool fw_coexist_all_off;
1630 bool b_sw_coexist_all_off; 1630 bool sw_coexist_all_off;
1631 u32 current_state; 1631 u32 current_state;
1632 u32 previous_state; 1632 u32 previous_state;
1633 u8 bt_pre_rssi_state; 1633 u8 bt_pre_rssi_state;
1634 1634
1635 u8 b_reg_bt_iso; 1635 u8 reg_bt_iso;
1636 u8 b_reg_bt_sco; 1636 u8 reg_bt_sco;
1637 1637
1638}; 1638};
1639 1639