diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-02-04 23:13:42 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-02-04 23:13:42 +0000 |
commit | f5f279226dc80c377bf61a1325af7fe5b3977ad9 (patch) | |
tree | 4a4b29b5ca2c3d417d29337868b7c591f45c707d /sys/dev | |
parent | a47a5577372405090c9fcde609de160091355659 (diff) |
The firmware isn't always happy with the length of the "join BSS" command
that we send. It seems to want some extra padding, but it isn't entirely
clear how much. So pass the size of the entire buffer that we allocate for
this command instead, which seems to always work.
ok stsp@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_rsu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_rsu.c b/sys/dev/usb/if_rsu.c index 5789836024f..9fa93340eb3 100644 --- a/sys/dev/usb/if_rsu.c +++ b/sys/dev/usb/if_rsu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rsu.c,v 1.14 2011/07/03 15:47:17 matthew Exp $ */ +/* $OpenBSD: if_rsu.c,v 1.15 2013/02/04 23:13:41 kettenis Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1078,7 +1078,7 @@ rsu_join_bss(struct rsu_softc *sc, struct ieee80211_node *ni) bss->len = htole32(((frm - buf) + 3) & ~3); DPRINTF(("sending join bss command to %s chan %d\n", ether_sprintf(bss->macaddr), letoh32(bss->config.dsconfig))); - return (rsu_fw_cmd(sc, R92S_CMD_JOIN_BSS, buf, frm - buf)); + return (rsu_fw_cmd(sc, R92S_CMD_JOIN_BSS, buf, sizeof(buf))); } int |