aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-05-24 07:33:08 -0400
committerLuciano Coelho <coelho@ti.com>2011-06-27 05:01:14 -0400
commitd192d268a1fb632148046b8efe9ab78e69890dd2 (patch)
treea8ba0f3e02065acbd2eb641ce2da063cd90204dc
parenta011130265e999056fe0678a064d828c2fd40174 (diff)
wl12xx: fix erroneous commit (cb5ae0)
Due to rebase error, the patch for commit cb5ae0 ("wl12xx: configure rates when working in ibss mode") was wrong - a blob was added into the wrong function. fix it. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
-rw-r--r--drivers/net/wireless/wl12xx/main.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 15d8166fbf66..f19bf0ba4388 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -2900,24 +2900,6 @@ static void wl1271_bss_info_changed_ap(struct wl1271 *wl,
2900 } 2900 }
2901 } 2901 }
2902 2902
2903 if (changed & BSS_CHANGED_IBSS) {
2904 wl1271_debug(DEBUG_ADHOC, "ibss_joined: %d",
2905 bss_conf->ibss_joined);
2906
2907 if (bss_conf->ibss_joined) {
2908 u32 rates = bss_conf->basic_rates;
2909 wl->basic_rate_set = wl1271_tx_enabled_rates_get(wl,
2910 rates);
2911 wl->basic_rate = wl1271_tx_min_rate_get(wl);
2912
2913 /* by default, use 11b rates */
2914 wl->rate_set = CONF_TX_IBSS_DEFAULT_RATES;
2915 ret = wl1271_acx_sta_rate_policies(wl);
2916 if (ret < 0)
2917 goto out;
2918 }
2919 }
2920
2921 ret = wl1271_bss_erp_info_changed(wl, bss_conf, changed); 2903 ret = wl1271_bss_erp_info_changed(wl, bss_conf, changed);
2922 if (ret < 0) 2904 if (ret < 0)
2923 goto out; 2905 goto out;
@@ -3143,6 +3125,24 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
3143 } 3125 }
3144 } 3126 }
3145 3127
3128 if (changed & BSS_CHANGED_IBSS) {
3129 wl1271_debug(DEBUG_ADHOC, "ibss_joined: %d",
3130 bss_conf->ibss_joined);
3131
3132 if (bss_conf->ibss_joined) {
3133 u32 rates = bss_conf->basic_rates;
3134 wl->basic_rate_set = wl1271_tx_enabled_rates_get(wl,
3135 rates);
3136 wl->basic_rate = wl1271_tx_min_rate_get(wl);
3137
3138 /* by default, use 11b rates */
3139 wl->rate_set = CONF_TX_IBSS_DEFAULT_RATES;
3140 ret = wl1271_acx_sta_rate_policies(wl);
3141 if (ret < 0)
3142 goto out;
3143 }
3144 }
3145
3146 ret = wl1271_bss_erp_info_changed(wl, bss_conf, changed); 3146 ret = wl1271_bss_erp_info_changed(wl, bss_conf, changed);
3147 if (ret < 0) 3147 if (ret < 0)
3148 goto out; 3148 goto out;