Re: [PATCH] mac80211_hwsim: fix divide error in mac80211_hwsim_link_info_changed

From: Deepakkumar Karn

Date: Fri Dec 05 2025 - 18:03:54 EST


On Fri, 05 Dec 2025 18:39:49 +0100, Johannes Berg wrote:
> Seems like we should not let userspace do that, to protect all other
> drivers too, not just hwsim.

As suggested, we should provide a zero-value division check for other
drivers as well. I will investigate other places where divide errors can
occur due to edge cases.

Please let me know if you meant something different. In the meantime,
I will analyze other drivers for similar cases.

Thanks,
Deepakkumar Karn