ath9k: Initialize channel context ops on ahb probe
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Sat, 26 Jul 2014 04:55:41 +0000 (10:25 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2014 14:32:57 +0000 (10:32 -0400)
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>
drivers/net/wireless/ath/ath9k/ahb.c

index be3eb2a8d602ee9096cf2f7b798d4ea5807dba82..4173838f468486f97a2e7796ba33ebb1d5704d47 100644 (file)
@@ -113,6 +113,7 @@ static int ath_ahb_probe(struct platform_device *pdev)
 
        irq = res->start;
 
+       ath9k_fill_chanctx_ops();
        hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops);
        if (hw == NULL) {
                dev_err(&pdev->dev, "no memory for ieee80211_hw\n");