aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-06-20 10:22:51 -0700
committerDmitry Shmidt <dimitrysh@google.com>2012-06-20 10:26:09 -0700
commit562490d2472d7a2074f52c98e08535abdf555393 (patch)
tree10c17019f3addfb316485bd7ecaa30ca38c2d3cb /drivers/net
parent1ed2a48549a7e76b3790957a0d6f686e391f3aac (diff)
downloadkernel_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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/bcmdhd/wl_cfg80211.c5
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;