From: stsp Date: Tue, 26 Jul 2016 18:18:04 +0000 (+0000) Subject: In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=00fecc415803d55a463bc84eb7ae102b74e86f20;p=openbsd In rsu(4), put code that twiddles HT data in the ic under #ifdef notyet. Some code paths in this driver peek at ic_htcaps and act upon it, so let's play it safe until this driver gets its 11n support enabled on purpose. Spotted while investigating the bug fixed in r1.35. --- diff --git a/sys/dev/usb/if_rsu.c b/sys/dev/usb/if_rsu.c index 18bd5ea58fb..2ab10514708 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.35 2016/07/26 15:37:12 stsp Exp $ */ +/* $OpenBSD: if_rsu.c,v 1.36 2016/07/26 18:18:04 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini @@ -246,6 +246,7 @@ rsu_attach(struct device *parent, struct device *self, void *aux) IEEE80211_C_RSN; /* WPA/RSN. */ /* Check if HT support is present. */ if (usb_lookup(rsu_devs_noht, uaa->vendor, uaa->product) == NULL) { +#ifdef notyet /* Set HT capabilities. */ ic->ic_htcaps = IEEE80211_HTCAP_CBW20_40 | @@ -253,6 +254,7 @@ rsu_attach(struct device *parent, struct device *self, void *aux) /* Set supported HT rates. */ for (i = 0; i < 2; i++) ic->ic_sup_mcs[i] = 0xff; +#endif } /* Set supported .11b and .11g rates. */