diff options
author | Pavel Roskin <proski@gnu.org> | 2005-09-23 04:18:06 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-23 04:36:13 -0400 |
commit | 48ca703807eba616ad5e384b40e27514bd341a3d (patch) | |
tree | ca4a41c2a653ff89ff1e713109e9afe4978a12e6 /drivers/net/wireless | |
parent | d133ae4cd6a3c75c31b1630f906cc9979a11077f (diff) |
[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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 1ae301c62281..78afbc7f08be 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -623,10 +623,10 @@ static void __orinoco_ev_txexc(struct net_device *dev, hermes_t *hw) | |||
623 | if (fid == DUMMY_FID) | 623 | if (fid == DUMMY_FID) |
624 | return; /* Nothing's really happened */ | 624 | return; /* Nothing's really happened */ |
625 | 625 | ||
626 | /* Read the frame header */ | 626 | /* Read part of the frame header - we need status and addr1 */ |
627 | err = hermes_bap_pread(hw, IRQ_BAP, &hdr, | 627 | err = hermes_bap_pread(hw, IRQ_BAP, &hdr, |
628 | sizeof(struct hermes_tx_descriptor) + | 628 | offsetof(struct hermes_tx_descriptor_802_11, |
629 | sizeof(struct ieee80211_hdr_4addr), | 629 | addr2), |
630 | fid, 0); | 630 | fid, 0); |
631 | 631 | ||
632 | hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID); | 632 | hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID); |