Changeset 3123
- Timestamp:
- 01/10/08 21:10:41 (1 year ago)
- Files:
-
- madwifi/trunk/ath/if_ath.c (modified) (2 diffs)
- madwifi/trunk/net80211/ieee80211_input.c (modified) (1 diff)
- madwifi/trunk/net80211/ieee80211_output.c (modified) (5 diffs)
- madwifi/trunk/net80211/ieee80211_power.c (modified) (4 diffs)
- madwifi/trunk/net80211/ieee80211_proto.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/trunk/ath/if_ath.c
r3122 r3123 2959 2959 * 2960 2960 * Context: process context with BHs disabled 2961 * It mut return either NETDEV_TX_OK or NETDEV_TX_BUSY 2961 2962 */ 2962 2963 static int … … 5874 5875 * 5875 5876 * NB: MAY ALLOCATE */ 5876 st ruct sk_buff *5877 static struct sk_buff * 5877 5878 ath_skb_removepad(struct sk_buff *skb, unsigned int copy_skb) 5878 5879 { madwifi/trunk/net80211/ieee80211_input.c
r3091 r3123 3737 3737 M_PWR_SAV_SET(skb); /* ensure MORE_DATA bit is set correctly */ 3738 3738 3739 (void)ieee80211_parent_queue_xmit(skb); /* Submit to parent device, including updating stats */3739 ieee80211_parent_queue_xmit(skb); /* Submit to parent device, including updating stats */ 3740 3740 } 3741 3741 madwifi/trunk/net80211/ieee80211_output.c
r3076 r3123 197 197 /* 198 198 * Context: process context (BHs disabled) 199 * It must return either NETDEV_TX_OK or NETDEV_TX_BUSY 199 200 */ 200 201 int … … 233 234 if (vap->iv_opmode == IEEE80211_M_MONITOR) { 234 235 ieee80211_monitor_encap(vap, skb); 235 return ieee80211_parent_queue_xmit(skb); 236 ieee80211_parent_queue_xmit(skb); 237 return NETDEV_TX_OK; 236 238 } 237 239 … … 291 293 eh->ether_dhost); 292 294 /* Ignore this return code. */ 293 (void)ieee80211_parent_queue_xmit(skb1);295 ieee80211_parent_queue_xmit(skb1); 294 296 } 295 297 } 296 298 #endif 297 299 ieee80211_unref_node(&ni); 298 return ieee80211_parent_queue_xmit(skb); 300 ieee80211_parent_queue_xmit(skb); 301 return NETDEV_TX_OK; 299 302 300 303 bad: … … 303 306 if (ni != NULL) 304 307 ieee80211_unref_node(&ni); 305 return 0; 306 } 307 308 int ieee80211_parent_queue_xmit(struct sk_buff *skb) { 308 return NETDEV_TX_OK; 309 } 310 311 /* 312 * skb is consumed in all cases 313 */ 314 315 void ieee80211_parent_queue_xmit(struct sk_buff *skb) { 309 316 struct ieee80211vap *vap = skb->dev->priv; 310 int ret;311 317 312 318 vap->iv_devstats.tx_packets++; … … 317 323 skb->dev = vap->iv_ic->ic_dev; 318 324 319 if ( (ret = dev_queue_xmit(skb)) == NET_XMIT_DROP)325 if (dev_queue_xmit(skb) == NET_XMIT_DROP) 320 326 vap->iv_devstats.tx_dropped++; 321 327 322 return ret;323 328 } 324 329 madwifi/trunk/net80211/ieee80211_power.c
r3075 r3123 210 210 * The new packet is placed on the node's saved queue, and the TIM 211 211 * is changed, if necessary. 212 * It must return either NETDEV_TX_OK or NETDEV_TX_BUSY 212 213 */ 213 214 int … … 232 233 #endif 233 234 ieee80211_unref_node(&SKB_CB(skb)->ni); 234 ieee80211_dev_kfree_skb(&skb);235 235 return NETDEV_TX_BUSY; 236 236 } … … 340 340 #endif 341 341 342 (void)ieee80211_parent_queue_xmit(skb);342 ieee80211_parent_queue_xmit(skb); 343 343 } 344 344 vap->iv_set_tim(ni, 0); … … 381 381 if (skb == NULL) 382 382 break; 383 (void)ieee80211_parent_queue_xmit(skb);383 ieee80211_parent_queue_xmit(skb); 384 384 } 385 385 } madwifi/trunk/net80211/ieee80211_proto.h
r3075 r3123 73 73 int, int, u_int64_t); 74 74 int ieee80211_hardstart(struct sk_buff *, struct net_device *); 75 intieee80211_parent_queue_xmit(struct sk_buff *);75 void ieee80211_parent_queue_xmit(struct sk_buff *); 76 76 int ieee80211_send_nulldata(struct ieee80211_node *); 77 77 int ieee80211_send_qosnulldata(struct ieee80211_node *, int);
