From 67a8bf02467b777e842951e90515301a89d680bb Mon Sep 17 00:00:00 2001 From: phessler Date: Wed, 31 May 2017 13:22:16 +0000 Subject: [PATCH] another place to use ieee80211_min_basic_rate() to select the minimum tx rate OK stsp@ --- sys/dev/pci/if_iwm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index dc45533a968..a6ebaa05947 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.188 2017/05/31 12:24:06 phessler Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.189 2017/05/31 13:22:16 phessler Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -5444,8 +5444,7 @@ iwm_setrates(struct iwm_node *in) * legacy/HT are assumed to be marked with an 'invalid' PLCP value. */ j = 0; - ridx_min = (IEEE80211_IS_CHAN_5GHZ(ni->ni_chan)) ? - IWM_RIDX_OFDM : IWM_RIDX_CCK; + ridx_min = iwm_rval2ridx(ieee80211_min_basic_rate(ic)); mimo = iwm_is_mimo_mcs(ni->ni_txmcs); ridx_max = (mimo ? IWM_RIDX_MAX : IWM_LAST_HT_SISO_RATE); for (ridx = ridx_max; ridx >= ridx_min; ridx--) { -- 2.20.1