aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c4
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00queue.c2
-rw-r--r--drivers/net/wireless/rtl8187_dev.c2
-rw-r--r--include/linux/ieee80211.h14
5 files changed, 6 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c
index 98c434c52a64..7296e2846ec3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-tx.c
@@ -590,7 +590,7 @@ static void iwl_tx_cmd_build_basic(struct iwl_priv *priv,
590 590
591 591
592 tx_cmd->sta_id = std_id; 592 tx_cmd->sta_id = std_id;
593 if (ieee80211_get_morefrag(hdr)) 593 if (ieee80211_has_morefrags(fc))
594 tx_flags |= TX_CMD_FLG_MORE_FRAG_MSK; 594 tx_flags |= TX_CMD_FLG_MORE_FRAG_MSK;
595 595
596 if (ieee80211_is_data_qos(fc)) { 596 if (ieee80211_is_data_qos(fc)) {
@@ -944,7 +944,7 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb)
944 tx_cmd->dram_lsb_ptr = cpu_to_le32(scratch_phys); 944 tx_cmd->dram_lsb_ptr = cpu_to_le32(scratch_phys);
945 tx_cmd->dram_msb_ptr = iwl_get_dma_hi_address(scratch_phys); 945 tx_cmd->dram_msb_ptr = iwl_get_dma_hi_address(scratch_phys);
946 946
947 if (!ieee80211_get_morefrag(hdr)) { 947 if (!ieee80211_has_morefrags(hdr->frame_control)) {
948 txq->need_update = 1; 948 txq->need_update = 1;
949 if (qc) 949 if (qc)
950 priv->stations[sta_id].tid[tid].seq_number = seq_number; 950 priv->stations[sta_id].tid[tid].seq_number = seq_number;
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 0a5bbe9ee938..47cf4b997f50 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2448,7 +2448,7 @@ static void iwl3945_build_tx_cmd_basic(struct iwl3945_priv *priv,
2448 } 2448 }
2449 2449
2450 cmd->cmd.tx.sta_id = std_id; 2450 cmd->cmd.tx.sta_id = std_id;
2451 if (ieee80211_get_morefrag(hdr)) 2451 if (ieee80211_has_morefrags(fc))
2452 tx_flags |= TX_CMD_FLG_MORE_FRAG_MSK; 2452 tx_flags |= TX_CMD_FLG_MORE_FRAG_MSK;
2453 2453
2454 if (ieee80211_is_data_qos(fc)) { 2454 if (ieee80211_is_data_qos(fc)) {
@@ -2731,7 +2731,7 @@ static int iwl3945_tx_skb(struct iwl3945_priv *priv, struct sk_buff *skb)
2731 out_cmd->cmd.tx.tx_flags &= ~TX_CMD_FLG_ANT_A_MSK; 2731 out_cmd->cmd.tx.tx_flags &= ~TX_CMD_FLG_ANT_A_MSK;
2732 out_cmd->cmd.tx.tx_flags &= ~TX_CMD_FLG_ANT_B_MSK; 2732 out_cmd->cmd.tx.tx_flags &= ~TX_CMD_FLG_ANT_B_MSK;
2733 2733
2734 if (!ieee80211_get_morefrag(hdr)) { 2734 if (!ieee80211_has_morefrags(hdr->frame_control)) {
2735 txq->need_update = 1; 2735 txq->need_update = 1;
2736 if (qc) { 2736 if (qc) {
2737 priv->stations[sta_id].tid[tid].seq_number = seq_number; 2737 priv->stations[sta_id].tid[tid].seq_number = seq_number;
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c
index 2f3dd1d91a12..7b52039b01a6 100644
--- a/drivers/net/wireless/rt2x00/rt2x00queue.c
+++ b/drivers/net/wireless/rt2x00/rt2x00queue.c
@@ -130,7 +130,7 @@ void rt2x00queue_create_tx_descriptor(struct queue_entry *entry,
130 /* 130 /*
131 * Check if more fragments are pending 131 * Check if more fragments are pending
132 */ 132 */
133 if (ieee80211_get_morefrag(hdr)) { 133 if (ieee80211_has_morefrags(hdr->frame_control)) {
134 __set_bit(ENTRY_TXD_BURST, &txdesc->flags); 134 __set_bit(ENTRY_TXD_BURST, &txdesc->flags);
135 __set_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags); 135 __set_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags);
136 } 136 }
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c
index 0078c7e9918c..bec96d762c6c 100644
--- a/drivers/net/wireless/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl8187_dev.c
@@ -181,7 +181,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
181 flags |= RTL8187_TX_FLAG_NO_ENCRYPT; 181 flags |= RTL8187_TX_FLAG_NO_ENCRYPT;
182 182
183 flags |= ieee80211_get_tx_rate(dev, info)->hw_value << 24; 183 flags |= ieee80211_get_tx_rate(dev, info)->hw_value << 24;
184 if (ieee80211_get_morefrag((struct ieee80211_hdr *)skb->data)) 184 if (ieee80211_has_morefrags(((struct ieee80211_hdr *)skb->data)->frame_control))
185 flags |= RTL8187_TX_FLAG_MORE_FRAG; 185 flags |= RTL8187_TX_FLAG_MORE_FRAG;
186 if (info->flags & IEEE80211_TX_CTL_USE_RTS_CTS) { 186 if (info->flags & IEEE80211_TX_CTL_USE_RTS_CTS) {
187 flags |= RTL8187_TX_FLAG_RTS; 187 flags |= RTL8187_TX_FLAG_RTS;
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 371237b0d8b9..2998e3b5f166 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -956,18 +956,4 @@ static inline u8 *ieee80211_get_DA(struct ieee80211_hdr *hdr)
956 return hdr->addr1; 956 return hdr->addr1;
957} 957}
958 958
959/**
960 * ieee80211_get_morefrag - determine whether the MOREFRAGS bit is set
961 *
962 * This function determines whether the "more fragments" bit is set
963 * in the frame.
964 *
965 * @hdr: the frame
966 */
967static inline int ieee80211_get_morefrag(struct ieee80211_hdr *hdr)
968{
969 __le16 fc = hdr->frame_control;
970 return !!(fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS));
971}
972
973#endif /* IEEE80211_H */ 959#endif /* IEEE80211_H */