The first hunk of "ath5k: avoid oops when ah_capabilities.cap_mode not set" was ill-advised. It can cause the it's loop to abort prematurely. Signed-off-by: John W. Linville <linville.tuxdriver.com> --- drivers/net/wireless/ath5k/base.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index c38adab..e764fd3 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c @@ -1991,9 +1991,6 @@ static int ath5k_getchannels(struct ieee80211_hw *hw) } hw_rates = ath5k_hw_get_rate_table(ah, mode->mode); - if (!hw_rates) - return -EINVAL; - mode->num_rates = ath5k_copy_rates(mode->rates, hw_rates, max_r); mode->num_channels = ath5k_copy_channels(ah, mode->channels, -- 1.5.2.4 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html