mwl8k: prepare for posting per-vif firmware commands
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 12 Jan 2010 12:50:14 +0000 (13:50 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 19:21:20 +0000 (14:21 -0500)
commitf57ca9c1af3c1e30a40ad99d75940176d8c3ff3a
tree996f555011d9f41158cb2f11a355792d1580c719
parentf5bb87cfba5ae9dd3724b846ac2fa7e033425c1c
mwl8k: prepare for posting per-vif firmware commands

One of the bytes in the mwl8k firmware command header is the 'macid'
byte, which for per-vif commands indicates which of the BSSes this
command is intended for.  (For commands that are not per-vif commands,
this byte can just be 0.)

This patch adds mwl8k_post_pervif_cmd(), which will take the macid
assigned to this interface (to be done in ->add_interface()), copy it
into the command packet macid field, and post the command as usual.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c