From: Dmitry Shmidt Date: Wed, 20 Jun 2012 17:22:51 +0000 (-0700) Subject: net: wireless: bcmdhd: Ignore error if "chanspecs" command is not supported X-Git-Tag: firefly_0821_release~7613^2~86 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=562490d2472d7a2074f52c98e08535abdf555393;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Ignore error if "chanspecs" command is not supported Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index d6bf8fa0c13f..009ebed2c7b3 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -7182,7 +7182,10 @@ s32 wl_update_wiphybands(struct wl_priv *wl) err = wl_construct_reginfo(wl, bw_cap); if (err) { WL_ERR(("wl_construct_reginfo() fails err=%d\n", err)); - return err; + if (err != BCME_UNSUPPORTED) + return err; + /* Ignore error if "chanspecs" command is not supported */ + err = 0; } for (i = 1; i <= nband && i < sizeof(bandlist)/sizeof(u32); i++) { index = -1;