aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2012-06-28 16:26:07 -0700
committerDmitry Shmidt <dimitrysh@google.com>2012-07-12 10:45:48 -0700
commitd7ade6c71e6004fc2ac327eb13205684da6dcfdf (patch)
tree1a048ca1e1cca77dac0fa5dcc977891e26f0cc83 /drivers
parent38fac5b1e2604aaf3ffae7ebadf219eb567cb61f (diff)
downloadkernel_samsung_crespo-d7ade6c71e6004fc2ac327eb13205684da6dcfdf.zip
kernel_samsung_crespo-d7ade6c71e6004fc2ac327eb13205684da6dcfdf.tar.gz
kernel_samsung_crespo-d7ade6c71e6004fc2ac327eb13205684da6dcfdf.tar.bz2
net: wireless: bcmdhd: Add wiphyband update for country change
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/bcmdhd/dhd_linux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c
index b8fb0a9..2f48cbb 100644
--- a/drivers/net/wireless/bcmdhd/dhd_linux.c
+++ b/drivers/net/wireless/bcmdhd/dhd_linux.c
@@ -4532,8 +4532,12 @@ void dhd_bus_country_set(struct net_device *dev, wl_country_t *cspec)
{
dhd_info_t *dhd = *(dhd_info_t **)netdev_priv(dev);
- if (dhd && dhd->pub.up)
+ if (dhd && dhd->pub.up) {
memcpy(&dhd->pub.dhd_cspec, cspec, sizeof(wl_country_t));
+#ifdef WL_CFG80211
+ wl_update_wiphybands(NULL);
+#endif
+ }
}
void dhd_net_if_lock(struct net_device *dev)