summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-02-15 17:49:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-02-15 17:49:40 +0000
commit1ee8c29679cdb7a167f0e6d5c0400027d1240245 (patch)
tree19ef36a80c7cf5692cc058f33f4d92bd34a0ee60
parent3a7fb5fef1f8e0f59ab0a6686564cf3ecd21c219 (diff)
Increase xfer rates buffer from 8 to 12 bytes. This allows 802.11g
stations such as the airport extreme to associate. Tested by Ben Lovett.
-rw-r--r--sys/dev/ic/if_wi_hostap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/if_wi_hostap.c b/sys/dev/ic/if_wi_hostap.c
index 796a6ded490..71c3b5a9776 100644
--- a/sys/dev/ic/if_wi_hostap.c
+++ b/sys/dev/ic/if_wi_hostap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_hostap.c,v 1.23 2003/01/21 20:09:39 millert Exp $ */
+/* $OpenBSD: if_wi_hostap.c,v 1.24 2003/02/15 17:49:39 millert Exp $ */
/*
* Copyright (c) 2002
@@ -728,7 +728,7 @@ wihap_assoc_req(struct wi_softc *sc, struct wi_frame *rxfrm,
struct wi_80211_hdr *resp_hdr;
u_int16_t capinfo;
u_int16_t lstintvl;
- u_int8_t rates[8];
+ u_int8_t rates[12];
int ssid_len, rates_len;
struct ieee80211_nwid ssid;
u_int16_t status;
@@ -752,11 +752,11 @@ wihap_assoc_req(struct wi_softc *sc, struct wi_frame *rxfrm,
}
if ((ssid_len = take_tlv(&pkt, &len, IEEE80211_ELEMID_SSID,
- ssid.i_nwid, sizeof(ssid)))<0)
+ ssid.i_nwid, sizeof(ssid))) < 0)
return;
ssid.i_len = ssid_len;
if ((rates_len = take_tlv(&pkt, &len, IEEE80211_ELEMID_RATES,
- rates, sizeof(rates)))<0)
+ rates, sizeof(rates))) < 0)
return;
if (sc->sc_arpcom.ac_if.if_flags & IFF_DEBUG)
@@ -783,7 +783,7 @@ wihap_assoc_req(struct wi_softc *sc, struct wi_frame *rxfrm,
}
/* Check supported rates against ours. */
- if (wihap_check_rates(sta, rates, rates_len)<0) {
+ if (wihap_check_rates(sta, rates, rates_len) < 0) {
if (sc->sc_arpcom.ac_if.if_flags & IFF_DEBUG)
printf("wihap_assoc_req: rates mismatch.\n");
status = IEEE80211_STATUS_RATES;