diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-09-08 11:31:49 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-11 15:53:35 -0400 |
commit | 79636a5fbbdfb303dbf2bfe7a7fa396f40bfac31 (patch) | |
tree | 8a312dcb9c92c08016acd77f6c55e20ab79faec9 /drivers/net/wireless/rt2x00/rt2500usb.c | |
parent | 37ffc8da803a1151e887f2a80f08f0c49d1dc1d5 (diff) |
rt2x00: Revert "rt2x00: Fix the beacon length bug"
This reverts:
b93ce437eba7e0232683326f30d9d1167a872fad
rt2x00: Fix the beacon length bug
The workaround is no longer required since it has been
correctly fixed in rt2x00usb now.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2500usb.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 0e008b606f70..1cfda456b0ea 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1133,7 +1133,6 @@ static void rt2500usb_write_beacon(struct queue_entry *entry) | |||
1133 | int pipe = usb_sndbulkpipe(usb_dev, 1); | 1133 | int pipe = usb_sndbulkpipe(usb_dev, 1); |
1134 | int length; | 1134 | int length; |
1135 | u16 reg; | 1135 | u16 reg; |
1136 | u32 word, len; | ||
1137 | 1136 | ||
1138 | /* | 1137 | /* |
1139 | * Add the descriptor in front of the skb. | 1138 | * Add the descriptor in front of the skb. |
@@ -1143,17 +1142,6 @@ static void rt2500usb_write_beacon(struct queue_entry *entry) | |||
1143 | skbdesc->desc = entry->skb->data; | 1142 | skbdesc->desc = entry->skb->data; |
1144 | 1143 | ||
1145 | /* | 1144 | /* |
1146 | * Adjust the beacon databyte count. The current number is | ||
1147 | * calculated before this function gets called, but falsely | ||
1148 | * assumes that the descriptor was already present in the SKB. | ||
1149 | */ | ||
1150 | rt2x00_desc_read(skbdesc->desc, 0, &word); | ||
1151 | len = rt2x00_get_field32(word, TXD_W0_DATABYTE_COUNT); | ||
1152 | len += skbdesc->desc_len; | ||
1153 | rt2x00_set_field32(&word, TXD_W0_DATABYTE_COUNT, len); | ||
1154 | rt2x00_desc_write(skbdesc->desc, 0, word); | ||
1155 | |||
1156 | /* | ||
1157 | * Disable beaconing while we are reloading the beacon data, | 1145 | * Disable beaconing while we are reloading the beacon data, |
1158 | * otherwise we might be sending out invalid data. | 1146 | * otherwise we might be sending out invalid data. |
1159 | */ | 1147 | */ |