]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/cfg80211.h
Merge remote-tracking branch 'net/master'
[karo-tx-linux.git] / include / net / cfg80211.h
index 88112ca59c8eeb299bc4b9e3a05d931dcaef769a..39bf7e2dd4d270fc9f3d1851f5d5b416a4136e6e 100644 (file)
@@ -1789,6 +1789,8 @@ struct wiphy_wowlan_support {
  *     by default for perm_addr. In this case, the mask should be set to
  *     all-zeroes. In this case it is assumed that the device can handle
  *     the same number of arbitrary MAC addresses.
+ * @registered: protects ->resume and ->suspend sysfs callbacks against
+ *     unregister hardware
  * @debugfsdir: debugfs directory used for this wiphy, will be renamed
  *     automatically on wiphy renames
  * @dev: (virtual) struct device for this wiphy
@@ -1910,6 +1912,9 @@ struct wiphy {
         * you need use set_wiphy_dev() (see below) */
        struct device dev;
 
+       /* protects ->resume, ->suspend sysfs callbacks against unregister hw */
+       bool registered;
+
        /* dir in debugfs: ieee80211/<wiphyname> */
        struct dentry *debugfsdir;