aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_main.c
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-11-02 13:22:08 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-02 15:43:30 -0500
commitc6317a548d839e6f518649a4e7e9aa30b55d509a (patch)
tree50dd610f685c14b01983b5cb1dd018aa008e1d21 /drivers/net/wireless/wl12xx/wl1271_main.c
parent584991dccfd347cd2e1675ab262998f6c335d3c0 (diff)
wl1271: Remove excess null-data template settings
The null-data template (nullfunc) is dependent on the BSSID of the current AP only, so it needs to be updated only when the BSSID changes. Removed excess setting of the template. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_main.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c
index 86132bb00787..0ae506a2e90b 100644
--- a/drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/drivers/net/wireless/wl12xx/wl1271_main.c
@@ -1067,11 +1067,11 @@ static int wl1271_op_config_interface(struct ieee80211_hw *hw,
1067 ret = wl1271_cmd_join(wl); 1067 ret = wl1271_cmd_join(wl);
1068 if (ret < 0) 1068 if (ret < 0)
1069 goto out_sleep; 1069 goto out_sleep;
1070 }
1071 1070
1072 ret = wl1271_cmd_build_null_data(wl); 1071 ret = wl1271_cmd_build_null_data(wl);
1073 if (ret < 0) 1072 if (ret < 0)
1074 goto out_sleep; 1073 goto out_sleep;
1074 }
1075 1075
1076 wl->ssid_len = conf->ssid_len; 1076 wl->ssid_len = conf->ssid_len;
1077 if (wl->ssid_len) 1077 if (wl->ssid_len)
@@ -1137,10 +1137,6 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed)
1137 wl->channel = channel; 1137 wl->channel = channel;
1138 } 1138 }
1139 1139
1140 ret = wl1271_cmd_build_null_data(wl);
1141 if (ret < 0)
1142 goto out_sleep;
1143
1144 if (conf->flags & IEEE80211_CONF_PS && !wl->psm_requested) { 1140 if (conf->flags & IEEE80211_CONF_PS && !wl->psm_requested) {
1145 wl1271_info("psm enabled"); 1141 wl1271_info("psm enabled");
1146 1142
@@ -1165,7 +1161,7 @@ static int wl1271_op_config(struct ieee80211_hw *hw, u32 changed)
1165 if (conf->power_level != wl->power_level) { 1161 if (conf->power_level != wl->power_level) {
1166 ret = wl1271_acx_tx_power(wl, conf->power_level); 1162 ret = wl1271_acx_tx_power(wl, conf->power_level);
1167 if (ret < 0) 1163 if (ret < 0)
1168 goto out; 1164 goto out_sleep;
1169 1165
1170 wl->power_level = conf->power_level; 1166 wl->power_level = conf->power_level;
1171 } 1167 }