diff options
author | Eliad Peller <eliad@wizery.com> | 2013-09-09 05:24:44 -0400 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@intel.com> | 2013-10-23 02:47:45 -0400 |
commit | 8d3c1fd8c3a4a4a1a319491cdd09bd7eca23ba3b (patch) | |
tree | 0fe9deeafdea8151fcf9f0edf28b87ea392c2ea2 | |
parent | e9687ea9caaf9f961df8144a95ca63ec77c02b49 (diff) |
wlcore: save last regdom configuration on stop
In order to reconfigure the correct reg domain on
recovery, we have to save the current configuration
before clearing it (wl->reg_ch_conf_pending is
considered before configuring a new regdomain).
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index a9ee23417716..0368b9cbfb89 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -1949,8 +1949,10 @@ static void wlcore_op_stop_locked(struct wl1271 *wl) | |||
1949 | 1949 | ||
1950 | /* | 1950 | /* |
1951 | * FW channels must be re-calibrated after recovery, | 1951 | * FW channels must be re-calibrated after recovery, |
1952 | * clear the last Reg-Domain channel configuration. | 1952 | * save current Reg-Domain channel configuration and clear it. |
1953 | */ | 1953 | */ |
1954 | memcpy(wl->reg_ch_conf_pending, wl->reg_ch_conf_last, | ||
1955 | sizeof(wl->reg_ch_conf_pending)); | ||
1954 | memset(wl->reg_ch_conf_last, 0, sizeof(wl->reg_ch_conf_last)); | 1956 | memset(wl->reg_ch_conf_last, 0, sizeof(wl->reg_ch_conf_last)); |
1955 | } | 1957 | } |
1956 | 1958 | ||