mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
cfg80211: add wrappers for registered_device_ops
This will allow adding central tracing like in mac80211. Signed-off-by: Hila Gonen <hila.gonen@intel.com> Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
de7044ee85
commit
e35e4d28b6
14 changed files with 700 additions and 148 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <net/cfg80211.h>
|
||||
#include "sysfs.h"
|
||||
#include "core.h"
|
||||
#include "rdev-ops.h"
|
||||
|
||||
static inline struct cfg80211_registered_device *dev_to_rdev(
|
||||
struct device *dev)
|
||||
|
@ -94,7 +95,7 @@ static int wiphy_suspend(struct device *dev, pm_message_t state)
|
|||
if (rdev->ops->suspend) {
|
||||
rtnl_lock();
|
||||
if (rdev->wiphy.registered)
|
||||
ret = rdev->ops->suspend(&rdev->wiphy, rdev->wowlan);
|
||||
ret = rdev_suspend(rdev);
|
||||
rtnl_unlock();
|
||||
}
|
||||
|
||||
|
@ -114,7 +115,7 @@ static int wiphy_resume(struct device *dev)
|
|||
if (rdev->ops->resume) {
|
||||
rtnl_lock();
|
||||
if (rdev->wiphy.registered)
|
||||
ret = rdev->ops->resume(&rdev->wiphy);
|
||||
ret = rdev_resume(rdev);
|
||||
rtnl_unlock();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue