diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2012-06-20 10:22:51 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-06-20 10:26:09 -0700 |
commit | 562490d2472d7a2074f52c98e08535abdf555393 (patch) | |
tree | 10c17019f3addfb316485bd7ecaa30ca38c2d3cb | |
parent | 1ed2a48549a7e76b3790957a0d6f686e391f3aac (diff) | |
download | kernel_samsung_crespo-562490d2472d7a2074f52c98e08535abdf555393.zip kernel_samsung_crespo-562490d2472d7a2074f52c98e08535abdf555393.tar.gz kernel_samsung_crespo-562490d2472d7a2074f52c98e08535abdf555393.tar.bz2 |
net: wireless: bcmdhd: Ignore error if "chanspecs" command is not supported
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
-rw-r--r-- | drivers/net/wireless/bcmdhd/wl_cfg80211.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index d6bf8fa..009ebed 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; |