CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2025/08/01 14:39:26

Modified files:
        sys/dev/ic     : ath.c 
        sys/net80211   : ieee80211.c ieee80211_input.c ieee80211_node.c 
                         ieee80211_node.h ieee80211_output.c 
                         ieee80211_proto.c ieee80211_var.h 

Log message:
replace ieee80211_chan2mode() with ieee80211_node_abg_mode()

chan2mode() did not detect 11g APs properly. This can be fixed now that
we are setting the ERP flag in client mode, not only in hostap mode.
In 11g mode chan2mode() was wrongly selecting 11g mode for 11b-only peers.
The CHAN_ANYC case of chan2mode() was irrelevant for all callers.

Replace chan2mode() with node_abg_mode() which does not have these issues.

ok phessler@, mpi@

Reply via email to