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/ca2b31744edf
branches:  trunk
changeset: 933107:ca2b31744edf
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 df4e9f3698f4 -r ca2b31744edf 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