On 8/7/2018 3:38 PM, Chi-Hsien Lin wrote:
From: Winnie Chang <winnie.chang@xxxxxxxxxxx> The kernel BUG happens when wowl is enabled from firmware. In brcmf_wiphy_wowl_params(), cfg is a NULL pointer because it is drvr->config returned from wiphy_to_cfg(), and drvr->config is not set yet. To fix it, set drvr->config before brcmf_setup_wiphy() which calls brcmf_wiphy_wowl_params(). The kernel panic is introduced in below commit: commit id: 856d5a011c86b59f6564be4508912fb1d866adfc brcmfmac: allocate struct brcmf_pub instance using wiphy_new()
The above info should be in Fixes: tag, but maybe Kalle is willing to reformat it this time.
Regards, Arend
Signed-off-by: Winnie Chang <winnie.chang@xxxxxxxxxxx> Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@xxxxxxxxxxx> ---