# Re: \[PATCH\] drivers:net:wireless: Add mutex locking for function, b43\_op\_beacon\_set\_time in main.c

- From: Rafał Miłecki \<zajec5@gmail.com\>
- Date: 2014-11-29 08:54:32 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2014/11/4385041
- Thread: https://ratatoskr.run/netdev/2014/11/10971564/t.md

```text
On 29 November 2014 at 04:32, nick [ref] wrote:
> I don't have hardware for this driver on me, so I didn't test it. However this seems to
> be correct from my reading of the code around this function and other locking related
> to this driver.

So do you say it's not executed in an atomic?

>From *early* look it seems b43_update_templates is called from
b43_op_beacon_set_tim and b43_op_bss_info_changed, both or them are
mac80211 callbacks. That also should be safe, however I didn't check
if it may conflict with some in-kernel code (still, assuming it's not
atomic code, which I don't know!).
```
