aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-03-04 03:55:50 -0500
committerLuciano Coelho <coelho@ti.com>2012-03-05 08:45:25 -0500
commit249e9698899643a799951a6e772facae346f0941 (patch)
tree550b8b6d107df1e45ec2d6c6007dea2a82fb897e /drivers
parentb32b2b0f8ea82cb51d70b88815c25e0f1c0cf7a5 (diff)
wl12xx: set correct vif type in change_interface callback
In some cases, the wrong vif type was set in the change_interface callback (P2P_CLIENT/P2P_GO instead of STA/AP) Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index a330b0c0ae6..65f91d7bad3 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -2336,7 +2336,7 @@ static int wl12xx_op_change_interface(struct ieee80211_hw *hw,
2336 set_bit(WL1271_FLAG_VIF_CHANGE_IN_PROGRESS, &wl->flags); 2336 set_bit(WL1271_FLAG_VIF_CHANGE_IN_PROGRESS, &wl->flags);
2337 wl1271_op_remove_interface(hw, vif); 2337 wl1271_op_remove_interface(hw, vif);
2338 2338
2339 vif->type = ieee80211_iftype_p2p(new_type, p2p); 2339 vif->type = new_type;
2340 vif->p2p = p2p; 2340 vif->p2p = p2p;
2341 ret = wl1271_op_add_interface(hw, vif); 2341 ret = wl1271_op_add_interface(hw, vif);
2342 2342