|
@@ -2208,6 +2208,14 @@ enum ieee80211_rate_control_changed {
|
|
|
* @sta_remove: Notifies low level driver about removal of an associated
|
|
|
* station, AP, IBSS/WDS/mesh peer etc. This callback can sleep.
|
|
|
*
|
|
|
+ * @sta_add_debugfs: Drivers can use this callback to add debugfs files
|
|
|
+ * when a station is added to mac80211's station list. This callback
|
|
|
+ * and @sta_remove_debugfs should be within a CONFIG_MAC80211_DEBUGFS
|
|
|
+ * conditional. This callback can sleep.
|
|
|
+ *
|
|
|
+ * @sta_remove_debugfs: Remove the debugfs files which were added using
|
|
|
+ * @sta_add_debugfs. This callback can sleep.
|
|
|
+ *
|
|
|
* @sta_notify: Notifies low level driver about power state transition of an
|
|
|
* associated station, AP, IBSS/WDS/mesh peer etc. For a VIF operating
|
|
|
* in AP mode, this callback will not be called when the flag
|
|
@@ -2489,6 +2497,16 @@ struct ieee80211_ops {
|
|
|
struct ieee80211_sta *sta);
|
|
|
int (*sta_remove)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta);
|
|
|
+#ifdef CONFIG_MAC80211_DEBUGFS
|
|
|
+ void (*sta_add_debugfs)(struct ieee80211_hw *hw,
|
|
|
+ struct ieee80211_vif *vif,
|
|
|
+ struct ieee80211_sta *sta,
|
|
|
+ struct dentry *dir);
|
|
|
+ void (*sta_remove_debugfs)(struct ieee80211_hw *hw,
|
|
|
+ struct ieee80211_vif *vif,
|
|
|
+ struct ieee80211_sta *sta,
|
|
|
+ struct dentry *dir);
|
|
|
+#endif
|
|
|
void (*sta_notify)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|
|
enum sta_notify_cmd, struct ieee80211_sta *sta);
|
|
|
int (*sta_state)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|