mac80211: brcmfmac: backport firmware loading changes & fix memory bugs
authorRafał Miłecki <rafal@milecki.pl>
Tue, 8 Jan 2019 09:01:08 +0000 (10:01 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 8 Jan 2019 09:12:07 +0000 (10:12 +0100)
commita8cc06c5371eca2ae8ab4511c7136d0ebd9ee3bc
tree7b591eb33402aa256ea777d7300a6a593a4b4c1e
parentc5c20f510a19f0eb5500fefde1f366f48c168e85
mac80211: brcmfmac: backport firmware loading changes & fix memory bugs

This pick most of brcmfmac changes backported into the master in commits
5932eb690f24 ("mac80211: brcmfmac: backport firmware loading cleanup")
3eab6b8275b2 ("mac80211: brcmfmac: backport NVRAM loading improvements")
529c95cc15dc ("mac80211: brcmfmac: fix use-after-free & possible NULL pointer dereference")

It's more than would be normally backported into a stable branch but it
seems required. Firmware loading cleanups are needed to allow fix memory
bugs in a reliable way. Memory fixes are really important to avoid
corrupting memory and risking a NULL pointer dereference.

Hopefully this stuff has received enough testing in the master.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/kernel/mac80211/patches/355-v5.0-0001-brcmfmac-Remove-firmware-loading-code-duplication.patch [new file with mode: 0644]
package/kernel/mac80211/patches/355-v5.0-0002-brcmfmac-Remove-recursion-from-firmware-load-error-h.patch [new file with mode: 0644]
package/kernel/mac80211/patches/355-v5.0-0003-brcmfmac-Add-support-for-first-trying-to-get-a-board.patch [new file with mode: 0644]
package/kernel/mac80211/patches/355-v5.0-0004-brcmfmac-Set-board_type-used-for-nvram-file-selectio.patch [new file with mode: 0644]
package/kernel/mac80211/patches/355-v5.0-0005-brcmfmac-Set-board_type-from-DMI-on-x86-based-machin.patch [new file with mode: 0644]
package/kernel/mac80211/patches/355-v5.0-0006-brcmfmac-Cleanup-brcmf_fw_request_done.patch [new file with mode: 0644]
package/kernel/mac80211/patches/860-brcmfmac-register-wiphy-s-during-module_init.patch
package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch