iwlwifi: Fix error: struct iwl_lq_sta has no member named dbg_fixed_rate
authorSedat Dilek <sedat.dilek@googlemail.com>
Thu, 16 Dec 2010 11:46:23 +0000 (12:46 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Dec 2010 14:47:02 +0000 (09:47 -0500)
commit7d5f01ad536afebde9a1c81d985f8d0eaf2a9ab6
tree292e3e0b7dd9aee05e021d14630ce1cbf0e11ce1
parente137478b56fd79c397b5c5c74fc08c049a42835a
iwlwifi: Fix error: struct iwl_lq_sta has no member named dbg_fixed_rate

While compiling linux-next (next-20101216) I fell over this breakage:
...
drivers/net/wireless/iwlwifi/iwl-agn-rs.c: In function ‘iwl_rs_rate_init’:
drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2876:8: error: ‘struct iwl_lq_sta’ has no member named ‘dbg_fixed_rate’

dbg_fixed_rate is only used when CONFIG_MAC80211_DEBUGFS is set:

[ drivers/net/wireless/iwlwifi/iwl-agn-rs.h ]
...
 #ifdef CONFIG_MAC80211_DEBUGFS
       struct dentry *rs_sta_dbgfs_scale_table_file;
       struct dentry *rs_sta_dbgfs_stats_table_file;
       struct dentry *rs_sta_dbgfs_rate_scale_data_file;
       struct dentry *rs_sta_dbgfs_tx_agg_tid_en_file;
       u32 dbg_fixed_rate;
 #endif

The issue was introduced by commit a1da077bc36368eb7d6312e7e49260f0a3d92c77:
"iwlwifi: clear dbg_fixed_rate during init"

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c