From 899de76d2d898ad5563605e63e4aed4cc9b4aebf Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sun, 11 Aug 2013 03:39:28 +0000 Subject: [PATCH] Use the correct structure size when flipping the BT coex state machine. This showed up when doing some basic testing on the Intel 6230. Tested: * Intel 6230, STA mode --- sys/dev/iwn/if_iwn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c index 67ec1865d9eb..a3efc32a0699 100644 --- a/sys/dev/iwn/if_iwn.c +++ b/sys/dev/iwn/if_iwn.c @@ -5372,7 +5372,7 @@ iwn_send_advanced_btcoex(struct iwn_softc *sc) return error; /* Force BT state machine change. */ - memset(&btprot, 0, sizeof btprio); + memset(&btprot, 0, sizeof btprot); btprot.open = 1; btprot.type = 1; error = iwn_cmd(sc, IWN_CMD_BT_COEX_PROT, &btprot, sizeof(btprot), 1);