aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2009-07-16 10:06:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:38:05 -0400
commit5539bb51295f2c9300a6e467a29bb62bcfe9f4bc (patch)
tree5cf48d75be9754bfd6c1658f54515fe7ab4963a0 /drivers/net/wireless/mwl8k.c
parent0439b1f55646ea944b0d58337f5065b79a1c1be0 (diff)
mwl8k: remove MWL8K_*_SLOTTIME defines
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r--drivers/net/wireless/mwl8k.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 33d7ab517b33..a40434b5572b 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -274,14 +274,6 @@ static const struct ieee80211_rate mwl8k_rates[] = {
274 { .bitrate = 540, .hw_value = 108, }, 274 { .bitrate = 540, .hw_value = 108, },
275}; 275};
276 276
277/* Slot time */
278
279/* Short Slot: 9us slot time */
280#define MWL8K_SHORT_SLOTTIME 1
281
282/* Long slot: 20us slot time */
283#define MWL8K_LONG_SLOTTIME 0
284
285/* Set or get info from Firmware */ 277/* Set or get info from Firmware */
286#define MWL8K_CMD_SET 0x0001 278#define MWL8K_CMD_SET 0x0001
287#define MWL8K_CMD_GET 0x0000 279#define MWL8K_CMD_GET 0x0000
@@ -1895,7 +1887,7 @@ struct mwl8k_cmd_set_slot {
1895 __u8 short_slot; 1887 __u8 short_slot;
1896} __attribute__((packed)); 1888} __attribute__((packed));
1897 1889
1898static int mwl8k_cmd_set_slot(struct ieee80211_hw *hw, int slot_time) 1890static int mwl8k_cmd_set_slot(struct ieee80211_hw *hw, bool short_slot_time)
1899{ 1891{
1900 struct mwl8k_cmd_set_slot *cmd; 1892 struct mwl8k_cmd_set_slot *cmd;
1901 int rc; 1893 int rc;
@@ -1907,7 +1899,7 @@ static int mwl8k_cmd_set_slot(struct ieee80211_hw *hw, int slot_time)
1907 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_SLOT); 1899 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_SLOT);
1908 cmd->header.length = cpu_to_le16(sizeof(*cmd)); 1900 cmd->header.length = cpu_to_le16(sizeof(*cmd));
1909 cmd->action = cpu_to_le16(MWL8K_CMD_SET); 1901 cmd->action = cpu_to_le16(MWL8K_CMD_SET);
1910 cmd->short_slot = slot_time == MWL8K_SHORT_SLOTTIME ? 1 : 0; 1902 cmd->short_slot = short_slot_time;
1911 1903
1912 rc = mwl8k_post_cmd(hw, &cmd->header); 1904 rc = mwl8k_post_cmd(hw, &cmd->header);
1913 kfree(cmd); 1905 kfree(cmd);
@@ -3038,8 +3030,7 @@ static int mwl8k_bss_info_changed_wt(struct work_struct *wt)
3038 goto mwl8k_bss_info_changed_exit; 3030 goto mwl8k_bss_info_changed_exit;
3039 3031
3040 /* Set slot time */ 3032 /* Set slot time */
3041 if (mwl8k_cmd_set_slot(hw, info->use_short_slot ? 3033 if (mwl8k_cmd_set_slot(hw, info->use_short_slot))
3042 MWL8K_SHORT_SLOTTIME : MWL8K_LONG_SLOTTIME))
3043 goto mwl8k_bss_info_changed_exit; 3034 goto mwl8k_bss_info_changed_exit;
3044 3035
3045 /* Update peer rate info */ 3036 /* Update peer rate info */