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

- From: Michael Büsch \<m@bues.ch\>
- Date: 2014-11-29 08:56:58 
- List: netdev
- Page: https://ratatoskr.run/netdev/2014/11/4385042
- Thread: https://ratatoskr.run/netdev/2014/11/10971564/t.md

```text
On Fri, 28 Nov 2014 22:32:30 -0500
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.

From the current docs:

>  * @set_tim: Set TIM bit. mac80211 calls this function when a TIM bit
>  *      must be set or cleared for a given STA. Must be atomic.

So it is not allowed to lock a mutex here.

-- 
Michael
```

## Attachments

- [(unnamed)](https://ratatoskr.run/netdev/2014/11/4385042/attachment/0) (application/pgp-signature, 819 bytes)
