summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/init.c
diff options
context:
space:
mode:
authorYogesh Ashok Powar2011-09-27 05:37:26 +0200
committerJohn W. Linville2011-09-30 21:57:01 +0200
commit93a1df48d224296fb527d32fbec4d5162828feb4 (patch)
tree9e99b9364d2d96e1a865425da2a68e3e3cd048c7 /drivers/net/wireless/mwifiex/init.c
parentmwifiex: fix Tx data rate display issue (diff)
downloadkernel-qcow2-linux-93a1df48d224296fb527d32fbec4d5162828feb4.tar.gz
kernel-qcow2-linux-93a1df48d224296fb527d32fbec4d5162828feb4.tar.xz
kernel-qcow2-linux-93a1df48d224296fb527d32fbec4d5162828feb4.zip
mwifiex: add cfg80211 handlers add/del_virtual_intf
Making adding and deleting virtual interfaces dynamic. Adding handlers for creating and deleting virtual interface with given name and dev respectively. Also, creating default interface of type station on insmod of the driver. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/init.c')
-rw-r--r--drivers/net/wireless/mwifiex/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c
index 26e685a31bc0..e1076b46401e 100644
--- a/drivers/net/wireless/mwifiex/init.c
+++ b/drivers/net/wireless/mwifiex/init.c
@@ -76,7 +76,7 @@ static int mwifiex_init_priv(struct mwifiex_private *priv)
memset(priv->curr_addr, 0xff, ETH_ALEN);
priv->pkt_tx_ctrl = 0;
- priv->bss_mode = NL80211_IFTYPE_STATION;
+ priv->bss_mode = NL80211_IFTYPE_UNSPECIFIED;
priv->data_rate = 0; /* Initially indicate the rate as auto */
priv->is_data_rate_auto = true;
priv->bcn_avg_factor = DEFAULT_BCN_AVG_FACTOR;