summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/main.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2016-08-09 20:20:46 +0530
committerKalle Valo <kvalo@codeaurora.org>2016-09-03 13:05:46 +0300
commit72539799104d4d70c2afcb8f0fe2a7a507a41c81 (patch)
tree4eb282e1febf0ec6afcdc91743753af095c35772 /drivers/net/wireless/marvell/mwifiex/main.c
parent41960b4dfdfce7d669dbec6a492202d1b18accb7 (diff)
downloadlwn-72539799104d4d70c2afcb8f0fe2a7a507a41c81.tar.gz
lwn-72539799104d4d70c2afcb8f0fe2a7a507a41c81.zip
mwifiex: add custom regulatory domain support
This patch creates custom regulatory rules based on the information received from firmware and enable them during wiphy registration. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/main.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index db4925db39aa..51d4dfcf1214 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -139,6 +139,8 @@ static int mwifiex_unregister(struct mwifiex_adapter *adapter)
adapter->nd_info = NULL;
}
+ kfree(adapter->regd);
+
vfree(adapter->chan_stats);
kfree(adapter);
return 0;