Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d654567d authored by Rajkumar Manoharan's avatar Rajkumar Manoharan Committed by John W. Linville
Browse files

ath9k_htc: Set proper firmware offset for Netgear WNDA3200



Netgear WNDA3200 device uses ar7010 firmware but it is failed to set
correct firmware offset on firmware download which causes device initialization
failure.

Cc: stable@kernel.org
Signed-off-by: default avatarRajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e609e2ea
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -801,10 +801,16 @@ static int ath9k_hif_usb_download_fw(struct hif_device_usb *hif_dev)
	}
	}
	kfree(buf);
	kfree(buf);


	if ((hif_dev->device_id == 0x7010) || (hif_dev->device_id == 0x7015))
	switch (hif_dev->device_id) {
	case 0x7010:
	case 0x7015:
	case 0x9018:
		firm_offset = AR7010_FIRMWARE_TEXT;
		firm_offset = AR7010_FIRMWARE_TEXT;
	else
		break;
	default:
		firm_offset = AR9271_FIRMWARE_TEXT;
		firm_offset = AR9271_FIRMWARE_TEXT;
		break;
	}


	/*
	/*
	 * Issue FW download complete command to firmware.
	 * Issue FW download complete command to firmware.