ath9k_htc: introduce support for different fw versions
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 6 Sep 2015 11:09:01 +0000 (13:09 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 18 Sep 2015 07:40:14 +0000 (10:40 +0300)
commite904cf6fe23022cde4e0ea9d41601411a315a3dc
tree6a2b0347c9dc27c8e06d3d8b114464ed7abca5df
parent47bbbb30b4331ec58a74a66a044341f0114b02b3
ath9k_htc: introduce support for different fw versions

Current kernel support only one fw name with theoretically only one
fw version located in “firmware/htc_[9271|7010].fw”. Which is ok so far we
have only one fw version (1.3). After we realised new fw 1.4, we faced
compatibility problem which was decided to solve by firmware name and
location:
- new firmware is located now in
firmware/ath9k_htc/htc_[9271|7010]-1.4.0.fw
- old version 1.3 should be on old place, so old kernel have no issues
with it.
- new kernels including this patch should be able to try different
supported (min..max) fw version.
- new kernel should be able to support old fw location too. At least for
now.

At same time this patch will add new module option which should allow user
to play with development  fw version without replacing stable one. If user
will set “ath9k_htc use_dev_fw=1” module will try to find
firmware/ath9k_htc/htc_[9271|7010]-1.dev.0.fw first and if it fails, use
stable version: for example...1.4.0.fw.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/hif_usb.h
drivers/net/wireless/ath/ath9k/htc_drv_init.c