From f5f279226dc80c377bf61a1325af7fe5b3977ad9 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 4 Feb 2013 23:13:42 +0000 Subject: 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@ --- sys/dev/usb/if_rsu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 @@ -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 -- cgit v1.2.3