Re: git: d7ce88aafc87 - main - LinuxKPI: 802.11 correct enum ieee80211_channel_flags

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 17 Jan 2022 00:34:10 UTC
On Sun, 16 Jan 2022, Bjoern A. Zeeb wrote:

> The branch main has been updated by bz:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=d7ce88aafc870944d5eda477b125478f56844f81
>
> commit d7ce88aafc870944d5eda477b125478f56844f81
> Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
> AuthorDate: 2022-01-16 22:22:23 +0000
> Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
> CommitDate: 2022-01-16 22:30:38 +0000
>
>    LinuxKPI: 802.11 correct enum ieee80211_channel_flags
>
>    enum ieee80211_channel_flags are used as bit fields and not as 1..n.
>    Correct the values using BIT(n).
>
>    This is also hoped to fix problems with 7260 cards which come up and
>    panic due to an empty channel list as all channels are set disabled [1].

And just for the records, Mike confirmed that it helped for him with
the change applied to stable/13.


>    It will hopefully also fix the one or other oddity.
>
>    Reported by:    ambrisko, Mike Tancsa (mike sentex.net) [1]
>    Sponsored by:   The FreeBSD Foundation
>    MFC after:      3 days
> ---
> sys/compat/linuxkpi/common/include/net/cfg80211.h | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)

-- 
Bjoern A. Zeeb                                                     r15:7