From: Dmitry Shmidt Date: Thu, 28 Jun 2012 23:26:07 +0000 (-0700) Subject: net: wireless: bcmdhd: Add wiphyband update for country change X-Git-Tag: firefly_0821_release~7613^2~84 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d7ade6c71e6004fc2ac327eb13205684da6dcfdf;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Add wiphyband update for country change Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index b8fb0a90b0ce..2f48cbba9979 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)