Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Fix assignment botch.



details:   https://anonhg.NetBSD.org/src-all/rev/f15e958d7591
branches:  trunk
changeset: 939484:f15e958d7591
user:      Nathanial Sloss <nat%netbsd.org@localhost>
date:      Tue May 12 07:09:56 2020 +1000

description:
Fix assignment botch.

diffstat:

 sys/net80211/ieee80211_regdomain.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r da5eebc8ebe3 -r f15e958d7591 sys/net80211/ieee80211_regdomain.c
--- a/sys/net80211/ieee80211_regdomain.c        Tue May 12 07:08:48 2020 +1000
+++ b/sys/net80211/ieee80211_regdomain.c        Tue May 12 07:09:56 2020 +1000
@@ -142,7 +142,7 @@
        int ht40 = 0;
 
        if (isset(bands, IEEE80211_MODE_11NG) || isset(bands, IEEE80211_MODE_11NA))
-               ht40 =| (ic->ic_htcaps & IEEE80211_HTCAP_CHWIDTH40) ?
+               ht40 |= (ic->ic_htcaps & IEEE80211_HTCAP_CHWIDTH40) ?
                    IEEE80211_CHAN_HT : IEEE80211_CHAN_HT20;
        *nchans = 0;
        if (isset(bands, IEEE80211_MODE_11B) ||



Home | Main Index | Thread Index | Old Index