[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b5052977-1e5b-faa9-a77e-ac418e942873@huawei.com>
Date: Fri, 1 Sep 2023 18:13:57 +0800
From: shaozhengchao <shaozhengchao@...wei.com>
To: Johannes Berg <johannes@...solutions.net>,
<linux-wireless@...r.kernel.org>, <netdev@...r.kernel.org>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>
CC: <weiyongjun1@...wei.com>, <yuehaibing@...wei.com>
Subject: Re: [PATCH net,v2] wifi: mac80211: fix WARNING in
ieee80211_link_info_change_notify()
On 2023/9/1 17:19, Johannes Berg wrote:
> Hi,
>
>
>> Do you mean it shouldn't be allowed to set mcast rate when dev
>> is stopped,
>>
>
> Probably?
>
>> as in the following code?
>>
>> --- a/net/wireless/rdev-ops.h
>> +++ b/net/wireless/rdev-ops.h
>> @@ -1229,7 +1229,7 @@ rdev_set_mcast_rate(struct
>> cfg80211_registered_device *rdev,
>> int ret = -ENOTSUPP;
>>
>> trace_rdev_set_mcast_rate(&rdev->wiphy, dev, mcast_rate);
>> - if (rdev->ops->set_mcast_rate)
>> + if (rdev->ops->set_mcast_rate && netif_running(dev))
>> ret = rdev->ops->set_mcast_rate(&rdev->wiphy, dev,
>>
>
> Certainly not. Please don't do random patches without looking at the
> subsystem as a whole. If you don't want to take the time to understand
> how things work in wireless, then better don't send patches at all.
>
> johannes
Hi johannes:
It's a little difficult for me to solve this warning. This
warning has been going on for more than one year. Could you help solve
it? Thank you.
links:
https://groups.google.com/g/syzkaller-bugs/c/FofxpVlkONg/m/v296EFNnAAAJ
Zhengchao Shao
Powered by blists - more mailing lists