@@ -1893,35 +1893,30 @@ static const struct file_operations ath11k_fops_twt_resume_dialog = {
18931893 .open = simple_open
18941894};
18951895
1896- void ath11k_debugfs_add_interface (struct ath11k_vif * arvif )
1896+ void ath11k_debugfs_op_vif_add (struct ieee80211_hw * hw ,
1897+ struct ieee80211_vif * vif )
18971898{
1899+ struct ath11k_vif * arvif = ath11k_vif_to_arvif (vif );
18981900 struct ath11k_base * ab = arvif -> ar -> ab ;
1901+ struct dentry * debugfs_twt ;
18991902
19001903 if (arvif -> vif -> type != NL80211_IFTYPE_AP &&
19011904 !(arvif -> vif -> type == NL80211_IFTYPE_STATION &&
19021905 test_bit (WMI_TLV_SERVICE_STA_TWT , ab -> wmi_ab .svc_map )))
19031906 return ;
19041907
1905- arvif -> debugfs_twt = debugfs_create_dir ("twt" ,
1906- arvif -> vif -> debugfs_dir );
1907- debugfs_create_file ("add_dialog" , 0200 , arvif -> debugfs_twt ,
1908+ debugfs_twt = debugfs_create_dir ("twt" ,
1909+ arvif -> vif -> debugfs_dir );
1910+ debugfs_create_file ("add_dialog" , 0200 , debugfs_twt ,
19081911 arvif , & ath11k_fops_twt_add_dialog );
19091912
1910- debugfs_create_file ("del_dialog" , 0200 , arvif -> debugfs_twt ,
1913+ debugfs_create_file ("del_dialog" , 0200 , debugfs_twt ,
19111914 arvif , & ath11k_fops_twt_del_dialog );
19121915
1913- debugfs_create_file ("pause_dialog" , 0200 , arvif -> debugfs_twt ,
1916+ debugfs_create_file ("pause_dialog" , 0200 , debugfs_twt ,
19141917 arvif , & ath11k_fops_twt_pause_dialog );
19151918
1916- debugfs_create_file ("resume_dialog" , 0200 , arvif -> debugfs_twt ,
1919+ debugfs_create_file ("resume_dialog" , 0200 , debugfs_twt ,
19171920 arvif , & ath11k_fops_twt_resume_dialog );
19181921}
19191922
1920- void ath11k_debugfs_remove_interface (struct ath11k_vif * arvif )
1921- {
1922- if (!arvif -> debugfs_twt )
1923- return ;
1924-
1925- debugfs_remove_recursive (arvif -> debugfs_twt );
1926- arvif -> debugfs_twt = NULL ;
1927- }
0 commit comments