mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 00:02:14 -04:00
LinuxKPI: 802.11: implement wiphy_{,un}lock()
This will help us to get minimally better lock coverage in iwlwifi though not yet against the LinuxKPI implementation which will likely switch to this in the future. At least the TODO() logging noise is out of the way. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
ba5834b8e1
commit
95a7aa8009
1 changed files with 3 additions and 2 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/nl80211.h>
|
||||
#include <linux/ieee80211.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/ethtool.h>
|
||||
#include <linux/device.h>
|
||||
|
|
@ -1358,13 +1359,13 @@ wiphy_dev(struct wiphy *wiphy)
|
|||
static __inline void
|
||||
wiphy_lock(struct wiphy *wiphy)
|
||||
{
|
||||
TODO();
|
||||
mutex_lock(&wiphy->mtx);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
wiphy_unlock(struct wiphy *wiphy)
|
||||
{
|
||||
TODO();
|
||||
mutex_unlock(&wiphy->mtx);
|
||||
}
|
||||
|
||||
static __inline void
|
||||
|
|
|
|||
Loading…
Reference in a new issue