]> git.baikalelectronics.ru Git - kernel.git/commit
hostap: Revert a toxic part of the conversion to net_device_ops
authorMartin Decky <martin@decky.cz>
Thu, 10 Sep 2009 01:44:47 +0000 (03:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Sep 2009 18:36:03 +0000 (14:36 -0400)
commit5e684ff218d13acd1719f40b53ab1b535e3541fb
tree71daa641bd545bdff1198336f2fae6985dbe081a
parent698f96c8208a2e61fcc537bb66d967ebf7d1e9e1
hostap: Revert a toxic part of the conversion to net_device_ops

As the hostap driver was converted to use net_device_ops, a mistake was
made in hostap_main.c (commit 6fee4ad1029b4bfb90612350c05d21fbc224de09).
Originally, the tx_queue_len was set to 0 for every other interface than
HOSTAP_INTERFACE_MASTER, but the new fragment of code sets tx_queue_len to
0 only for HOSTAP_INTERFACE_MASTER. The opposite of the previous
behavior makes the driver to drop all packets in AP mode.

Change the way 0 is assigned to tx_queue_len according to the original
logic.

Signed-off-by: Martin Decky <martin@decky.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/hostap/hostap_main.c