[PATCH] orinoco: Read only needed data in __orinoco_ev_txexc().

Signed-off-by: Pavel Roskin <proski@gnu.org>

Read only needed data in __orinoco_ev_txexc().

Don't read the 802.11 header beyond addr1.  The rest of the frame is not
used currently.
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
Pavel Roskin 2005-09-23 04:18:06 -04:00 committed by Jeff Garzik
parent d133ae4cd6
commit 48ca703807

View file

@ -623,10 +623,10 @@ static void __orinoco_ev_txexc(struct net_device *dev, hermes_t *hw)
if (fid == DUMMY_FID) if (fid == DUMMY_FID)
return; /* Nothing's really happened */ return; /* Nothing's really happened */
/* Read the frame header */ /* Read part of the frame header - we need status and addr1 */
err = hermes_bap_pread(hw, IRQ_BAP, &hdr, err = hermes_bap_pread(hw, IRQ_BAP, &hdr,
sizeof(struct hermes_tx_descriptor) + offsetof(struct hermes_tx_descriptor_802_11,
sizeof(struct ieee80211_hdr_4addr), addr2),
fid, 0); fid, 0);
hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID); hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID);