wl1251: split RX and TX data path initialisation
Split up data path initialisation into RX and TX data path initialisation functions. This change is required for channel switching in monitor mode. Signed-off-by: David Gnedt <david.gnedt@davizone.at> Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
204cc5c44f
commit
9281691fb2
@@ -394,8 +394,13 @@ int wl1251_hw_init(struct wl1251 *wl)
|
||||
if (ret < 0)
|
||||
goto out_free_data_path;
|
||||
|
||||
/* Enable data path */
|
||||
ret = wl1251_cmd_data_path(wl, wl->channel, 1);
|
||||
/* Enable rx data path */
|
||||
ret = wl1251_cmd_data_path_rx(wl, wl->channel, 1);
|
||||
if (ret < 0)
|
||||
goto out_free_data_path;
|
||||
|
||||
/* Enable tx data path */
|
||||
ret = wl1251_cmd_data_path_tx(wl, wl->channel, 1);
|
||||
if (ret < 0)
|
||||
goto out_free_data_path;
|
||||
|
||||
|
Reference in New Issue
Block a user