* mac80211 sparse fixes
@ 2008-01-21 10:39 Tomas Winkler
2008-01-21 10:39 ` [PATCH 1/2] mac80211: fixing ieee80211_bar types Tomas Winkler
2008-01-24 8:42 ` mac80211 sparse fixes Johannes Berg
0 siblings, 2 replies; 4+ messages in thread
From: Tomas Winkler @ 2008-01-21 10:39 UTC (permalink / raw)
To: linville, johannes; +Cc: linux-wireless
two sparse fixes in mac80211
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] mac80211: fixing ieee80211_bar types
2008-01-21 10:39 mac80211 sparse fixes Tomas Winkler
@ 2008-01-21 10:39 ` Tomas Winkler
2008-01-21 10:39 ` [PATCH 2/2] mac80211: fix rx flow sparse errors, make functions static Tomas Winkler
2008-01-24 8:42 ` mac80211 sparse fixes Johannes Berg
1 sibling, 1 reply; 4+ messages in thread
From: Tomas Winkler @ 2008-01-21 10:39 UTC (permalink / raw)
To: linville, johannes; +Cc: linux-wireless, Ron Rindjunsky
From: Ron Rindjunsky <ron.rindjunsky@intel.com>
This patch changes ieee80211_bar control and start_seq_num to
match the proper bitwise attribute expected from ieee 802.11 frame
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
include/linux/ieee80211.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 4d5a4c9..5de6d91 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -237,8 +237,8 @@ struct ieee80211_bar {
__le16 duration;
__u8 ra[6];
__u8 ta[6];
- __u16 control;
- __u16 start_seq_num;
+ __le16 control;
+ __le16 start_seq_num;
} __attribute__((packed));
/**
--
1.5.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] mac80211: fix rx flow sparse errors, make functions static
2008-01-21 10:39 ` [PATCH 1/2] mac80211: fixing ieee80211_bar types Tomas Winkler
@ 2008-01-21 10:39 ` Tomas Winkler
0 siblings, 0 replies; 4+ messages in thread
From: Tomas Winkler @ 2008-01-21 10:39 UTC (permalink / raw)
To: linville, johannes; +Cc: linux-wireless, Ron Rindjunsky
From: Ron Rindjunsky <ron.rindjunsky@intel.com>
This patch adds static declarations to functions in the Rx flow in order to
eliminate sparse errors
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
net/mac80211/ieee80211_sta.c | 4 ++--
net/mac80211/rx.c | 12 +++++++-----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index e7da1cd..2019b4f 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -1154,8 +1154,8 @@ end_no_lock:
sta_info_put(sta);
}
-void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid,
- u16 initiator, u16 reason_code)
+static void ieee80211_send_delba(struct net_device *dev, const u8 *da, u16 tid,
+ u16 initiator, u16 reason_code)
{
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c
index 6cc1e7e..d19f79e 100644
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
@@ -295,7 +295,7 @@ ieee80211_rx_h_parse_qos(struct ieee80211_txrx_data *rx)
}
-u32 ieee80211_rx_load_stats(struct ieee80211_local *local,
+static u32 ieee80211_rx_load_stats(struct ieee80211_local *local,
struct sk_buff *skb,
struct ieee80211_rx_status *status)
{
@@ -1664,8 +1664,10 @@ static int prepare_for_handlers(struct ieee80211_sub_if_data *sdata,
* This is the actual Rx frames handler. as it blongs to Rx path it must
* be called with rcu_read_lock protection.
*/
-void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw, struct sk_buff *skb,
- struct ieee80211_rx_status *status, u32 load)
+static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
+ struct sk_buff *skb,
+ struct ieee80211_rx_status *status,
+ u32 load)
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_sub_if_data *sdata;
@@ -1920,8 +1922,8 @@ u8 ieee80211_sta_manage_reorder_buf(struct ieee80211_hw *hw,
return 1;
}
-u8 ieee80211_rx_reorder_ampdu(struct ieee80211_local *local,
- struct sk_buff *skb)
+static u8 ieee80211_rx_reorder_ampdu(struct ieee80211_local *local,
+ struct sk_buff *skb)
{
struct ieee80211_hw *hw = &local->hw;
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
--
1.5.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: mac80211 sparse fixes
2008-01-21 10:39 mac80211 sparse fixes Tomas Winkler
2008-01-21 10:39 ` [PATCH 1/2] mac80211: fixing ieee80211_bar types Tomas Winkler
@ 2008-01-24 8:42 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2008-01-24 8:42 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linville, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
On Mon, 2008-01-21 at 12:39 +0200, Tomas Winkler wrote:
> two sparse fixes in mac80211
Both look good to me, thanks.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-24 14:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-21 10:39 mac80211 sparse fixes Tomas Winkler
2008-01-21 10:39 ` [PATCH 1/2] mac80211: fixing ieee80211_bar types Tomas Winkler
2008-01-21 10:39 ` [PATCH 2/2] mac80211: fix rx flow sparse errors, make functions static Tomas Winkler
2008-01-24 8:42 ` mac80211 sparse fixes Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).