On Mon, 2007-03-26 at 04:43 -0700, mohamed wrote: > +static void ieee80211_send_addba_resp(struct net_device *dev, > + struct ieee80211_mgmt *mgmt_src, > + size_t len, > + u16 status) > +{ > + struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); > + struct ieee80211_if_sta *ifsta = &sdata->u.sta; > + struct sk_buff *skb; > + struct ieee80211_mgmt *mgmt; > + > + skb = dev_alloc_skb(sizeof(*mgmt) + 50 ); Why +50? And isn't sizeof(ieee80211_mgmt) a bit dangerous since that structure might increase in size? > +static void ieee80211_rx_mgmt_action(struct net_device *dev, > + struct ieee80211_if_sta *ifsta, > + struct ieee80211_mgmt *mgmt, > + size_t len) > +{ > + struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); > + > + if (len < 24 + 1) { Why 25? Some #define maybe? > + printk(KERN_ERR "%s: recieved back unsupported \n", > + dev->name); "Received unsupported block-ack action"? And you need a ratelimit on that printk or somebody can flood you with kernel messages by sending tiny frames with invalid fields there. Possibly on other printks too. Oh and one more smallish thing: Can you post your patches 1-5/5 as replies to 0/5? Makes the whole thing more readable in most mail programs, and I think it also simplifies John's life when merging. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part