diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/debug.c')
-rw-r--r-- | drivers/net/wireless/ath9k/debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/debug.c b/drivers/net/wireless/ath9k/debug.c index b0ff4792546e..82573cadb1ab 100644 --- a/drivers/net/wireless/ath9k/debug.c +++ b/drivers/net/wireless/ath9k/debug.c | |||
@@ -322,6 +322,9 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf, | |||
322 | { | 322 | { |
323 | struct ath_softc *sc = file->private_data; | 323 | struct ath_softc *sc = file->private_data; |
324 | 324 | ||
325 | if (sc->cur_rate_table == NULL) | ||
326 | return 0; | ||
327 | |||
325 | if (conf_is_ht(&sc->hw->conf)) | 328 | if (conf_is_ht(&sc->hw->conf)) |
326 | return ath_read_file_stat_11n_rc(file, user_buf, count, ppos); | 329 | return ath_read_file_stat_11n_rc(file, user_buf, count, ppos); |
327 | else | 330 | else |