diff options
author | Rajkumar Manoharan <rmanohar@qti.qualcomm.com> | 2014-07-26 00:55:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-07-29 10:32:57 -0400 |
commit | cf9ae8fa0110546c928836957bc54d42fea7828b (patch) | |
tree | a4c7820d01125b78ad46b37261d777f54abdc28a | |
parent | 27cfdb0505e7bfdd84432823b9697b971d4fa731 (diff) |
ath9k: Initialize channel context ops on ahb probe
Not doing so, could fail on device probing when use_chanctx
module param is set to true.
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ahb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c index be3eb2a8d602..4173838f4684 100644 --- a/drivers/net/wireless/ath/ath9k/ahb.c +++ b/drivers/net/wireless/ath/ath9k/ahb.c | |||
@@ -113,6 +113,7 @@ static int ath_ahb_probe(struct platform_device *pdev) | |||
113 | 113 | ||
114 | irq = res->start; | 114 | irq = res->start; |
115 | 115 | ||
116 | ath9k_fill_chanctx_ops(); | ||
116 | hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops); | 117 | hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops); |
117 | if (hw == NULL) { | 118 | if (hw == NULL) { |
118 | dev_err(&pdev->dev, "no memory for ieee80211_hw\n"); | 119 | dev_err(&pdev->dev, "no memory for ieee80211_hw\n"); |