aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-14 23:23:54 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-14 23:23:54 -0400
commit2aec609fb45e84d65bc8eabc7b650bbecb1cc179 (patch)
treeeb3e8a79604113392d0ee74b19dbc1dfce579c11 /drivers/net/wireless/rt2x00
parent4c8894980010536915c4f5513ee180e3614aeca9 (diff)
parent9076689ab07974a6f5d230fc241448f7a77e9078 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: net/netfilter/nf_conntrack_proto_tcp.c
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r--drivers/net/wireless/rt2x00/rt2400pci.c11
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c11
-rw-r--r--drivers/net/wireless/rt2x00/rt2500usb.c7
-rw-r--r--drivers/net/wireless/rt2x00/rt61pci.c9
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c9
5 files changed, 47 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c
index ee953ca0c6a3..91cbd9e560bd 100644
--- a/drivers/net/wireless/rt2x00/rt2400pci.c
+++ b/drivers/net/wireless/rt2x00/rt2400pci.c
@@ -733,6 +733,17 @@ static int rt2400pci_init_registers(struct rt2x00_dev *rt2x00dev)
733 (rt2x00dev->rx->data_size / 128)); 733 (rt2x00dev->rx->data_size / 128));
734 rt2x00pci_register_write(rt2x00dev, CSR9, reg); 734 rt2x00pci_register_write(rt2x00dev, CSR9, reg);
735 735
736 rt2x00pci_register_read(rt2x00dev, CSR14, &reg);
737 rt2x00_set_field32(&reg, CSR14_TSF_COUNT, 0);
738 rt2x00_set_field32(&reg, CSR14_TSF_SYNC, 0);
739 rt2x00_set_field32(&reg, CSR14_TBCN, 0);
740 rt2x00_set_field32(&reg, CSR14_TCFP, 0);
741 rt2x00_set_field32(&reg, CSR14_TATIMW, 0);
742 rt2x00_set_field32(&reg, CSR14_BEACON_GEN, 0);
743 rt2x00_set_field32(&reg, CSR14_CFP_COUNT_PRELOAD, 0);
744 rt2x00_set_field32(&reg, CSR14_TBCM_PRELOAD, 0);
745 rt2x00pci_register_write(rt2x00dev, CSR14, reg);
746
736 rt2x00pci_register_write(rt2x00dev, CNT3, 0x3f080000); 747 rt2x00pci_register_write(rt2x00dev, CNT3, 0x3f080000);
737 748
738 rt2x00pci_register_read(rt2x00dev, ARCSR0, &reg); 749 rt2x00pci_register_read(rt2x00dev, ARCSR0, &reg);
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 0423c251c78e..0f2a0e22fd71 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -831,6 +831,17 @@ static int rt2500pci_init_registers(struct rt2x00_dev *rt2x00dev)
831 rt2x00_set_field32(&reg, CSR11_CW_SELECT, 0); 831 rt2x00_set_field32(&reg, CSR11_CW_SELECT, 0);
832 rt2x00pci_register_write(rt2x00dev, CSR11, reg); 832 rt2x00pci_register_write(rt2x00dev, CSR11, reg);
833 833
834 rt2x00pci_register_read(rt2x00dev, CSR14, &reg);
835 rt2x00_set_field32(&reg, CSR14_TSF_COUNT, 0);
836 rt2x00_set_field32(&reg, CSR14_TSF_SYNC, 0);
837 rt2x00_set_field32(&reg, CSR14_TBCN, 0);
838 rt2x00_set_field32(&reg, CSR14_TCFP, 0);
839 rt2x00_set_field32(&reg, CSR14_TATIMW, 0);
840 rt2x00_set_field32(&reg, CSR14_BEACON_GEN, 0);
841 rt2x00_set_field32(&reg, CSR14_CFP_COUNT_PRELOAD, 0);
842 rt2x00_set_field32(&reg, CSR14_TBCM_PRELOAD, 0);
843 rt2x00pci_register_write(rt2x00dev, CSR14, reg);
844
834 rt2x00pci_register_write(rt2x00dev, CNT3, 0); 845 rt2x00pci_register_write(rt2x00dev, CNT3, 0);
835 846
836 rt2x00pci_register_read(rt2x00dev, TXCSR8, &reg); 847 rt2x00pci_register_read(rt2x00dev, TXCSR8, &reg);
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c
index 0dd1cb537b92..367db10b96d9 100644
--- a/drivers/net/wireless/rt2x00/rt2500usb.c
+++ b/drivers/net/wireless/rt2x00/rt2500usb.c
@@ -812,6 +812,13 @@ static int rt2500usb_init_registers(struct rt2x00_dev *rt2x00dev)
812 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID1_VALID, 0); 812 rt2x00_set_field16(&reg, TXRX_CSR8_BBP_ID1_VALID, 0);
813 rt2500usb_register_write(rt2x00dev, TXRX_CSR8, reg); 813 rt2500usb_register_write(rt2x00dev, TXRX_CSR8, reg);
814 814
815 rt2500usb_register_read(rt2x00dev, TXRX_CSR19, &reg);
816 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_COUNT, 0);
817 rt2x00_set_field16(&reg, TXRX_CSR19_TSF_SYNC, 0);
818 rt2x00_set_field16(&reg, TXRX_CSR19_TBCN, 0);
819 rt2x00_set_field16(&reg, TXRX_CSR19_BEACON_GEN, 0);
820 rt2500usb_register_write(rt2x00dev, TXRX_CSR19, reg);
821
815 rt2500usb_register_write(rt2x00dev, TXRX_CSR21, 0xe78f); 822 rt2500usb_register_write(rt2x00dev, TXRX_CSR21, 0xe78f);
816 rt2500usb_register_write(rt2x00dev, MAC_CSR9, 0xff1d); 823 rt2500usb_register_write(rt2x00dev, MAC_CSR9, 0xff1d);
817 824
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c
index bbf1048f6400..5a1330c5de71 100644
--- a/drivers/net/wireless/rt2x00/rt61pci.c
+++ b/drivers/net/wireless/rt2x00/rt61pci.c
@@ -1198,6 +1198,15 @@ static int rt61pci_init_registers(struct rt2x00_dev *rt2x00dev)
1198 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_54MBS, 42); 1198 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_54MBS, 42);
1199 rt2x00pci_register_write(rt2x00dev, TXRX_CSR8, reg); 1199 rt2x00pci_register_write(rt2x00dev, TXRX_CSR8, reg);
1200 1200
1201 rt2x00pci_register_read(rt2x00dev, TXRX_CSR9, &reg);
1202 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_INTERVAL, 0);
1203 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_TICKING, 0);
1204 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_SYNC, 0);
1205 rt2x00_set_field32(&reg, TXRX_CSR9_TBTT_ENABLE, 0);
1206 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0);
1207 rt2x00_set_field32(&reg, TXRX_CSR9_TIMESTAMP_COMPENSATE, 0);
1208 rt2x00pci_register_write(rt2x00dev, TXRX_CSR9, reg);
1209
1201 rt2x00pci_register_write(rt2x00dev, TXRX_CSR15, 0x0000000f); 1210 rt2x00pci_register_write(rt2x00dev, TXRX_CSR15, 0x0000000f);
1202 1211
1203 rt2x00pci_register_write(rt2x00dev, MAC_CSR6, 0x00000fff); 1212 rt2x00pci_register_write(rt2x00dev, MAC_CSR6, 0x00000fff);
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index 3ef318e098e7..25d8b660051f 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1016,6 +1016,15 @@ static int rt73usb_init_registers(struct rt2x00_dev *rt2x00dev)
1016 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_54MBS, 42); 1016 rt2x00_set_field32(&reg, TXRX_CSR8_ACK_CTS_54MBS, 42);
1017 rt73usb_register_write(rt2x00dev, TXRX_CSR8, reg); 1017 rt73usb_register_write(rt2x00dev, TXRX_CSR8, reg);
1018 1018
1019 rt73usb_register_read(rt2x00dev, TXRX_CSR9, &reg);
1020 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_INTERVAL, 0);
1021 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_TICKING, 0);
1022 rt2x00_set_field32(&reg, TXRX_CSR9_TSF_SYNC, 0);
1023 rt2x00_set_field32(&reg, TXRX_CSR9_TBTT_ENABLE, 0);
1024 rt2x00_set_field32(&reg, TXRX_CSR9_BEACON_GEN, 0);
1025 rt2x00_set_field32(&reg, TXRX_CSR9_TIMESTAMP_COMPENSATE, 0);
1026 rt73usb_register_write(rt2x00dev, TXRX_CSR9, reg);
1027
1019 rt73usb_register_write(rt2x00dev, TXRX_CSR15, 0x0000000f); 1028 rt73usb_register_write(rt2x00dev, TXRX_CSR15, 0x0000000f);
1020 1029
1021 rt73usb_register_read(rt2x00dev, MAC_CSR6, &reg); 1030 rt73usb_register_read(rt2x00dev, MAC_CSR6, &reg);