wl1251: fix mixed up args for join
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 18 Apr 2014 00:35:26 +0000 (03:35 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 19 Apr 2014 23:19:42 +0000 (02:19 +0300)
The join arguments are mixed up, passing beacon_interval instead of
channel and channel instead of beacon_interval. Fix them.

drivers/net/wireless/wl1251/main.c

index 3bd786a..68c9743 100644 (file)
@@ -1323,8 +1323,8 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw,
                if (ret < 0)
                        goto out_sleep;
 
                if (ret < 0)
                        goto out_sleep;
 
-               ret = wl1251_join(wl, wl->bss_type, wl->beacon_int,
-                                 wl->channel, wl->dtim_period);
+               ret = wl1251_join(wl, wl->bss_type, wl->channel,
+                                 wl->beacon_int, wl->dtim_period);
 
                if (ret < 0)
                        goto out_sleep;
 
                if (ret < 0)
                        goto out_sleep;