Skip to content

Commit

Permalink
[PATCH] orinoco: Read only needed data in __orinoco_ev_txexc().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Roskin authored and Jeff Garzik committed Sep 23, 2005
1 parent d133ae4 commit 48ca703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,10 @@ static void __orinoco_ev_txexc(struct net_device *dev, hermes_t *hw)
if (fid == DUMMY_FID)
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,
sizeof(struct hermes_tx_descriptor) +
sizeof(struct ieee80211_hdr_4addr),
offsetof(struct hermes_tx_descriptor_802_11,
addr2),
fid, 0);

hermes_write_regn(hw, TXCOMPLFID, DUMMY_FID);
Expand Down

0 comments on commit 48ca703

Please sign in to comment.