aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorZhang Jingye <934526987@qq.com>2017-01-16 20:10:51 +0800
committerJohn Crispin <john@phrozen.org>2017-01-18 12:05:18 +0100
commit71a39b869019c97f48bc85d9a8fabceead217d07 (patch)
tree11aa0e9c1e153142395f0365aed1d9ba195c312c /target/linux
parent2a7f669016f2faa29d64a59252556b96a55d071a (diff)
downloadupstream-71a39b869019c97f48bc85d9a8fabceead217d07.tar.gz
upstream-71a39b869019c97f48bc85d9a8fabceead217d07.tar.bz2
upstream-71a39b869019c97f48bc85d9a8fabceead217d07.zip
ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band. However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading. This patch adds d7800 to ath10k caldata extraction list. I can get two functional wireless bands after making change to it. Signed-off-by: Zhang Jingye <934526987@qq.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata18
-rw-r--r--target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac8
2 files changed, 15 insertions, 11 deletions
diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index 625f77f797..72c3ae88c2 100644
--- a/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -52,6 +52,11 @@ case "$FIRMWARE" in
ath10kcal_extract "radio" 4096 12064
# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -1)
;;
+ d7800 |\
+ r7500v2 |\
+ r7800)
+ ath10kcal_extract "art" 4096 12064
+ ;;
ea8500)
hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
ath10kcal_extract "art" 4096 12064
@@ -59,10 +64,6 @@ case "$FIRMWARE" in
nbg6817)
ath10kcal_extract "0:ART" 4096 12064
;;
- r7500v2 |\
- r7800)
- ath10kcal_extract "art" 4096 12064
- ;;
vr2600v)
ath10kcal_extract "ART" 4096 12064
;;
@@ -74,6 +75,11 @@ case "$FIRMWARE" in
ath10kcal_extract "radio" 20480 12064
# ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_binary default-mac 8) -2)
;;
+ d7800 |\
+ r7500v2 |\
+ r7800)
+ ath10kcal_extract "art" 20480 12064
+ ;;
ea8500)
hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
ath10kcal_extract "art" 20480 12064
@@ -81,10 +87,6 @@ case "$FIRMWARE" in
nbg6817)
ath10kcal_extract "0:ART" 20480 12064
;;
- r7500v2 |\
- r7800)
- ath10kcal_extract "art" 20480 12064
- ;;
vr2600v)
ath10kcal_extract "ART" 20480 12064
;;
diff --git a/target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
index 3482a09b70..0da6e0be67 100644
--- a/target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+++ b/target/linux/ipq806x/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
@@ -15,12 +15,14 @@ case "$board" in
c2600)
echo $(macaddr_add $(mtd_get_mac_binary default-mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
;;
- ea8500)
- echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
- ;;
+ d7800 |\
+ r7500v2 |\
r7800)
echo $(macaddr_add $(mtd_get_mac_binary art 6) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
;;
+ ea8500)
+ echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
+ ;;
vr2600v)
echo $(macaddr_add $(mtd_get_mac_binary default-mac 0) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
;;
a> 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474