aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2200.c
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2006-02-14 17:18:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2006-03-17 15:08:02 -0500
commit9d0be03aeeadcd59bd8f57219817e876a5e88e88 (patch)
tree2b8f12a59c1e2d643c90ecd645ac508a43324eaa /drivers/net/wireless/ipw2200.c
parent85149bace30eae1dc1f86d2c327329673123dd22 (diff)
[PATCH] ipw2200: use generic ieee80211_get_hdrlen() to get packet length
replace ipw2200 specific frame_hdr_len() with generic ieee80211 routine ieee80211_get_hdrlen() Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r--drivers/net/wireless/ipw2200.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
index 129891feb43f..b2bbdf982b01 100644
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -7895,7 +7895,8 @@ static void ipw_rx(struct ipw_priv *priv)
7895 le16_to_cpu(pkt->u.frame.length)); 7895 le16_to_cpu(pkt->u.frame.length));
7896 7896
7897 if (le16_to_cpu(pkt->u.frame.length) < 7897 if (le16_to_cpu(pkt->u.frame.length) <
7898 frame_hdr_len(header)) { 7898 ieee80211_get_hdrlen(le16_to_cpu(
7899 header->frame_ctl))) {
7899 IPW_DEBUG_DROP 7900 IPW_DEBUG_DROP
7900 ("Received packet is too small. " 7901 ("Received packet is too small. "
7901 "Dropping.\n"); 7902 "Dropping.\n");