OSDN Git Service

net: wireless: bcmdhd: Ignore error if "chanspecs" command is not supported
authorDmitry Shmidt <dimitrysh@google.com>
Wed, 20 Jun 2012 17:22:51 +0000 (10:22 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Wed, 20 Jun 2012 17:26:09 +0000 (10:26 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c

index d6bf8fa..009ebed 100644 (file)
@@ -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;