diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-25 15:46:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-25 15:46:37 -0400 |
commit | 345578d97c549995ddbcc178f16f710602cc06bb (patch) | |
tree | ce05e39a01ffce847f6f7f65f19b1e8e20dbf0c2 /include/net | |
parent | fe2a70eefa18a3e419dd9a23e16af14258b7cc20 (diff) | |
parent | cfef6047c4027a8448ec8dafeaf2bb362cc882e4 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 130 | ||||
-rw-r--r-- | include/net/cfg80211.h | 33 | ||||
-rw-r--r-- | include/net/mac80211.h | 16 |
3 files changed, 107 insertions, 72 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 2b9ca0d5c4a0..7a215a7f9e39 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -276,10 +276,52 @@ struct l2cap_conn_param_update_rsp { | |||
276 | #define L2CAP_CONN_PARAM_ACCEPTED 0x0000 | 276 | #define L2CAP_CONN_PARAM_ACCEPTED 0x0000 |
277 | #define L2CAP_CONN_PARAM_REJECTED 0x0001 | 277 | #define L2CAP_CONN_PARAM_REJECTED 0x0001 |
278 | 278 | ||
279 | /* ----- L2CAP connections ----- */ | 279 | /* ----- L2CAP channels and connections ----- */ |
280 | struct l2cap_chan_list { | 280 | struct srej_list { |
281 | struct sock *head; | 281 | __u8 tx_seq; |
282 | rwlock_t lock; | 282 | struct list_head list; |
283 | }; | ||
284 | |||
285 | struct l2cap_chan { | ||
286 | struct sock *sk; | ||
287 | __u8 ident; | ||
288 | |||
289 | __u8 conf_req[64]; | ||
290 | __u8 conf_len; | ||
291 | __u8 num_conf_req; | ||
292 | __u8 num_conf_rsp; | ||
293 | |||
294 | __u16 conn_state; | ||
295 | |||
296 | __u8 next_tx_seq; | ||
297 | __u8 expected_ack_seq; | ||
298 | __u8 expected_tx_seq; | ||
299 | __u8 buffer_seq; | ||
300 | __u8 buffer_seq_srej; | ||
301 | __u8 srej_save_reqseq; | ||
302 | __u8 frames_sent; | ||
303 | __u8 unacked_frames; | ||
304 | __u8 retry_count; | ||
305 | __u8 num_acked; | ||
306 | __u16 sdu_len; | ||
307 | __u16 partial_sdu_len; | ||
308 | struct sk_buff *sdu; | ||
309 | |||
310 | __u8 remote_tx_win; | ||
311 | __u8 remote_max_tx; | ||
312 | __u16 remote_mps; | ||
313 | |||
314 | struct timer_list retrans_timer; | ||
315 | struct timer_list monitor_timer; | ||
316 | struct timer_list ack_timer; | ||
317 | struct sk_buff *tx_send_head; | ||
318 | struct sk_buff_head tx_q; | ||
319 | struct sk_buff_head srej_q; | ||
320 | struct sk_buff_head busy_q; | ||
321 | struct work_struct busy_work; | ||
322 | struct list_head srej_l; | ||
323 | |||
324 | struct list_head list; | ||
283 | }; | 325 | }; |
284 | 326 | ||
285 | struct l2cap_conn { | 327 | struct l2cap_conn { |
@@ -305,29 +347,16 @@ struct l2cap_conn { | |||
305 | 347 | ||
306 | __u8 disc_reason; | 348 | __u8 disc_reason; |
307 | 349 | ||
308 | struct l2cap_chan_list chan_list; | 350 | struct list_head chan_l; |
309 | }; | 351 | rwlock_t chan_lock; |
310 | |||
311 | struct sock_del_list { | ||
312 | struct sock *sk; | ||
313 | struct list_head list; | ||
314 | }; | 352 | }; |
315 | 353 | ||
316 | #define L2CAP_INFO_CL_MTU_REQ_SENT 0x01 | 354 | #define L2CAP_INFO_CL_MTU_REQ_SENT 0x01 |
317 | #define L2CAP_INFO_FEAT_MASK_REQ_SENT 0x04 | 355 | #define L2CAP_INFO_FEAT_MASK_REQ_SENT 0x04 |
318 | #define L2CAP_INFO_FEAT_MASK_REQ_DONE 0x08 | 356 | #define L2CAP_INFO_FEAT_MASK_REQ_DONE 0x08 |
319 | 357 | ||
320 | /* ----- L2CAP channel and socket info ----- */ | 358 | /* ----- L2CAP socket info ----- */ |
321 | #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) | 359 | #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) |
322 | #define TX_QUEUE(sk) (&l2cap_pi(sk)->tx_queue) | ||
323 | #define SREJ_QUEUE(sk) (&l2cap_pi(sk)->srej_queue) | ||
324 | #define BUSY_QUEUE(sk) (&l2cap_pi(sk)->busy_queue) | ||
325 | #define SREJ_LIST(sk) (&l2cap_pi(sk)->srej_l.list) | ||
326 | |||
327 | struct srej_list { | ||
328 | __u8 tx_seq; | ||
329 | struct list_head list; | ||
330 | }; | ||
331 | 360 | ||
332 | struct l2cap_pinfo { | 361 | struct l2cap_pinfo { |
333 | struct bt_sock bt; | 362 | struct bt_sock bt; |
@@ -339,8 +368,6 @@ struct l2cap_pinfo { | |||
339 | __u16 omtu; | 368 | __u16 omtu; |
340 | __u16 flush_to; | 369 | __u16 flush_to; |
341 | __u8 mode; | 370 | __u8 mode; |
342 | __u8 num_conf_req; | ||
343 | __u8 num_conf_rsp; | ||
344 | 371 | ||
345 | __u8 fcs; | 372 | __u8 fcs; |
346 | __u8 sec_level; | 373 | __u8 sec_level; |
@@ -348,49 +375,18 @@ struct l2cap_pinfo { | |||
348 | __u8 force_reliable; | 375 | __u8 force_reliable; |
349 | __u8 flushable; | 376 | __u8 flushable; |
350 | 377 | ||
351 | __u8 conf_req[64]; | ||
352 | __u8 conf_len; | ||
353 | __u8 conf_state; | 378 | __u8 conf_state; |
354 | __u16 conn_state; | ||
355 | |||
356 | __u8 next_tx_seq; | ||
357 | __u8 expected_ack_seq; | ||
358 | __u8 expected_tx_seq; | ||
359 | __u8 buffer_seq; | ||
360 | __u8 buffer_seq_srej; | ||
361 | __u8 srej_save_reqseq; | ||
362 | __u8 frames_sent; | ||
363 | __u8 unacked_frames; | ||
364 | __u8 retry_count; | ||
365 | __u8 num_acked; | ||
366 | __u16 sdu_len; | ||
367 | __u16 partial_sdu_len; | ||
368 | struct sk_buff *sdu; | ||
369 | |||
370 | __u8 ident; | ||
371 | 379 | ||
372 | __u8 tx_win; | 380 | __u8 tx_win; |
373 | __u8 max_tx; | 381 | __u8 max_tx; |
374 | __u8 remote_tx_win; | ||
375 | __u8 remote_max_tx; | ||
376 | __u16 retrans_timeout; | 382 | __u16 retrans_timeout; |
377 | __u16 monitor_timeout; | 383 | __u16 monitor_timeout; |
378 | __u16 remote_mps; | ||
379 | __u16 mps; | 384 | __u16 mps; |
380 | 385 | ||
381 | __le16 sport; | 386 | __le16 sport; |
382 | 387 | ||
383 | struct timer_list retrans_timer; | ||
384 | struct timer_list monitor_timer; | ||
385 | struct timer_list ack_timer; | ||
386 | struct sk_buff_head tx_queue; | ||
387 | struct sk_buff_head srej_queue; | ||
388 | struct sk_buff_head busy_queue; | ||
389 | struct work_struct busy_work; | ||
390 | struct srej_list srej_l; | ||
391 | struct l2cap_conn *conn; | 388 | struct l2cap_conn *conn; |
392 | struct sock *next_c; | 389 | struct l2cap_chan *chan; |
393 | struct sock *prev_c; | ||
394 | }; | 390 | }; |
395 | 391 | ||
396 | #define L2CAP_CONF_REQ_SENT 0x01 | 392 | #define L2CAP_CONF_REQ_SENT 0x01 |
@@ -417,24 +413,23 @@ struct l2cap_pinfo { | |||
417 | #define L2CAP_CONN_RNR_SENT 0x0200 | 413 | #define L2CAP_CONN_RNR_SENT 0x0200 |
418 | #define L2CAP_CONN_SAR_RETRY 0x0400 | 414 | #define L2CAP_CONN_SAR_RETRY 0x0400 |
419 | 415 | ||
420 | #define __mod_retrans_timer() mod_timer(&l2cap_pi(sk)->retrans_timer, \ | 416 | #define __mod_retrans_timer() mod_timer(&chan->retrans_timer, \ |
421 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_RETRANS_TO)); | 417 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_RETRANS_TO)); |
422 | #define __mod_monitor_timer() mod_timer(&l2cap_pi(sk)->monitor_timer, \ | 418 | #define __mod_monitor_timer() mod_timer(&chan->monitor_timer, \ |
423 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_MONITOR_TO)); | 419 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_MONITOR_TO)); |
424 | #define __mod_ack_timer() mod_timer(&l2cap_pi(sk)->ack_timer, \ | 420 | #define __mod_ack_timer() mod_timer(&chan->ack_timer, \ |
425 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_ACK_TO)); | 421 | jiffies + msecs_to_jiffies(L2CAP_DEFAULT_ACK_TO)); |
426 | 422 | ||
427 | static inline int l2cap_tx_window_full(struct sock *sk) | 423 | static inline int l2cap_tx_window_full(struct l2cap_chan *ch) |
428 | { | 424 | { |
429 | struct l2cap_pinfo *pi = l2cap_pi(sk); | ||
430 | int sub; | 425 | int sub; |
431 | 426 | ||
432 | sub = (pi->next_tx_seq - pi->expected_ack_seq) % 64; | 427 | sub = (ch->next_tx_seq - ch->expected_ack_seq) % 64; |
433 | 428 | ||
434 | if (sub < 0) | 429 | if (sub < 0) |
435 | sub += 64; | 430 | sub += 64; |
436 | 431 | ||
437 | return sub == pi->remote_tx_win; | 432 | return sub == ch->remote_tx_win; |
438 | } | 433 | } |
439 | 434 | ||
440 | #define __get_txseq(ctrl) (((ctrl) & L2CAP_CTRL_TXSEQ) >> 1) | 435 | #define __get_txseq(ctrl) (((ctrl) & L2CAP_CTRL_TXSEQ) >> 1) |
@@ -450,18 +445,17 @@ extern struct bt_sock_list l2cap_sk_list; | |||
450 | int l2cap_init_sockets(void); | 445 | int l2cap_init_sockets(void); |
451 | void l2cap_cleanup_sockets(void); | 446 | void l2cap_cleanup_sockets(void); |
452 | 447 | ||
453 | u8 l2cap_get_ident(struct l2cap_conn *conn); | ||
454 | void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data); | 448 | void l2cap_send_cmd(struct l2cap_conn *conn, u8 ident, u8 code, u16 len, void *data); |
455 | int l2cap_build_conf_req(struct sock *sk, void *data); | 449 | void __l2cap_connect_rsp_defer(struct sock *sk); |
456 | int __l2cap_wait_ack(struct sock *sk); | 450 | int __l2cap_wait_ack(struct sock *sk); |
457 | 451 | ||
458 | struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len); | 452 | struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len); |
459 | struct sk_buff *l2cap_create_basic_pdu(struct sock *sk, struct msghdr *msg, size_t len); | 453 | struct sk_buff *l2cap_create_basic_pdu(struct sock *sk, struct msghdr *msg, size_t len); |
460 | struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, size_t len, u16 control, u16 sdulen); | 454 | struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, size_t len, u16 control, u16 sdulen); |
461 | int l2cap_sar_segment_sdu(struct sock *sk, struct msghdr *msg, size_t len); | 455 | int l2cap_sar_segment_sdu(struct l2cap_chan *chan, struct msghdr *msg, size_t len); |
462 | void l2cap_do_send(struct sock *sk, struct sk_buff *skb); | 456 | void l2cap_do_send(struct sock *sk, struct sk_buff *skb); |
463 | void l2cap_streaming_send(struct sock *sk); | 457 | void l2cap_streaming_send(struct l2cap_chan *chan); |
464 | int l2cap_ertm_send(struct sock *sk); | 458 | int l2cap_ertm_send(struct l2cap_chan *chan); |
465 | 459 | ||
466 | void l2cap_sock_set_timer(struct sock *sk, long timeout); | 460 | void l2cap_sock_set_timer(struct sock *sk, long timeout); |
467 | void l2cap_sock_clear_timer(struct sock *sk); | 461 | void l2cap_sock_clear_timer(struct sock *sk); |
@@ -470,8 +464,8 @@ void l2cap_sock_kill(struct sock *sk); | |||
470 | void l2cap_sock_init(struct sock *sk, struct sock *parent); | 464 | void l2cap_sock_init(struct sock *sk, struct sock *parent); |
471 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, | 465 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, |
472 | int proto, gfp_t prio); | 466 | int proto, gfp_t prio); |
473 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct sock *sk, int err); | 467 | void l2cap_send_disconn_req(struct l2cap_conn *conn, struct l2cap_chan *chan, int err); |
474 | void l2cap_chan_del(struct sock *sk, int err); | 468 | void l2cap_chan_del(struct l2cap_chan *chan, int err); |
475 | int l2cap_do_connect(struct sock *sk); | 469 | int l2cap_do_connect(struct sock *sk); |
476 | 470 | ||
477 | #endif /* __L2CAP_H */ | 471 | #endif /* __L2CAP_H */ |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index ba7384acf4e0..d30eada7c6cd 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -423,6 +423,7 @@ struct station_parameters { | |||
423 | * @STATION_INFO_SIGNAL_AVG: @signal_avg filled | 423 | * @STATION_INFO_SIGNAL_AVG: @signal_avg filled |
424 | * @STATION_INFO_RX_BITRATE: @rxrate fields are filled | 424 | * @STATION_INFO_RX_BITRATE: @rxrate fields are filled |
425 | * @STATION_INFO_BSS_PARAM: @bss_param filled | 425 | * @STATION_INFO_BSS_PARAM: @bss_param filled |
426 | * @STATION_INFO_CONNECTED_TIME: @connected_time filled | ||
426 | */ | 427 | */ |
427 | enum station_info_flags { | 428 | enum station_info_flags { |
428 | STATION_INFO_INACTIVE_TIME = 1<<0, | 429 | STATION_INFO_INACTIVE_TIME = 1<<0, |
@@ -441,6 +442,7 @@ enum station_info_flags { | |||
441 | STATION_INFO_SIGNAL_AVG = 1<<13, | 442 | STATION_INFO_SIGNAL_AVG = 1<<13, |
442 | STATION_INFO_RX_BITRATE = 1<<14, | 443 | STATION_INFO_RX_BITRATE = 1<<14, |
443 | STATION_INFO_BSS_PARAM = 1<<15, | 444 | STATION_INFO_BSS_PARAM = 1<<15, |
445 | STATION_INFO_CONNECTED_TIME = 1<<16 | ||
444 | }; | 446 | }; |
445 | 447 | ||
446 | /** | 448 | /** |
@@ -511,6 +513,7 @@ struct sta_bss_parameters { | |||
511 | * Station information filled by driver for get_station() and dump_station. | 513 | * Station information filled by driver for get_station() and dump_station. |
512 | * | 514 | * |
513 | * @filled: bitflag of flags from &enum station_info_flags | 515 | * @filled: bitflag of flags from &enum station_info_flags |
516 | * @connected_time: time(in secs) since a station is last connected | ||
514 | * @inactive_time: time since last station activity (tx/rx) in milliseconds | 517 | * @inactive_time: time since last station activity (tx/rx) in milliseconds |
515 | * @rx_bytes: bytes received from this station | 518 | * @rx_bytes: bytes received from this station |
516 | * @tx_bytes: bytes transmitted to this station | 519 | * @tx_bytes: bytes transmitted to this station |
@@ -533,6 +536,7 @@ struct sta_bss_parameters { | |||
533 | */ | 536 | */ |
534 | struct station_info { | 537 | struct station_info { |
535 | u32 filled; | 538 | u32 filled; |
539 | u32 connected_time; | ||
536 | u32 inactive_time; | 540 | u32 inactive_time; |
537 | u32 rx_bytes; | 541 | u32 rx_bytes; |
538 | u32 tx_bytes; | 542 | u32 tx_bytes; |
@@ -689,8 +693,9 @@ struct mesh_config { | |||
689 | * @mesh_id_len: length of the mesh ID, at least 1 and at most 32 bytes | 693 | * @mesh_id_len: length of the mesh ID, at least 1 and at most 32 bytes |
690 | * @path_sel_proto: which path selection protocol to use | 694 | * @path_sel_proto: which path selection protocol to use |
691 | * @path_metric: which metric to use | 695 | * @path_metric: which metric to use |
692 | * @vendor_ie: vendor information elements (optional) | 696 | * @ie: vendor information elements (optional) |
693 | * @vendor_ie_len: length of vendor information elements | 697 | * @ie_len: length of vendor information elements |
698 | * @is_secure: or not | ||
694 | * | 699 | * |
695 | * These parameters are fixed when the mesh is created. | 700 | * These parameters are fixed when the mesh is created. |
696 | */ | 701 | */ |
@@ -699,8 +704,9 @@ struct mesh_setup { | |||
699 | u8 mesh_id_len; | 704 | u8 mesh_id_len; |
700 | u8 path_sel_proto; | 705 | u8 path_sel_proto; |
701 | u8 path_metric; | 706 | u8 path_metric; |
702 | const u8 *vendor_ie; | 707 | const u8 *ie; |
703 | u8 vendor_ie_len; | 708 | u8 ie_len; |
709 | bool is_secure; | ||
704 | }; | 710 | }; |
705 | 711 | ||
706 | /** | 712 | /** |
@@ -1451,6 +1457,8 @@ struct cfg80211_ops { | |||
1451 | * @WIPHY_FLAG_IBSS_RSN: The device supports IBSS RSN. | 1457 | * @WIPHY_FLAG_IBSS_RSN: The device supports IBSS RSN. |
1452 | * @WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS: The device supports separate | 1458 | * @WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS: The device supports separate |
1453 | * unicast and multicast TX keys. | 1459 | * unicast and multicast TX keys. |
1460 | * @WIPHY_FLAG_MESH_AUTH: The device supports mesh authentication by routing | ||
1461 | * auth frames to userspace. See @NL80211_MESH_SETUP_USERSPACE_AUTH. | ||
1454 | */ | 1462 | */ |
1455 | enum wiphy_flags { | 1463 | enum wiphy_flags { |
1456 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), | 1464 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), |
@@ -1463,6 +1471,7 @@ enum wiphy_flags { | |||
1463 | WIPHY_FLAG_CONTROL_PORT_PROTOCOL = BIT(7), | 1471 | WIPHY_FLAG_CONTROL_PORT_PROTOCOL = BIT(7), |
1464 | WIPHY_FLAG_IBSS_RSN = BIT(8), | 1472 | WIPHY_FLAG_IBSS_RSN = BIT(8), |
1465 | WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS= BIT(9), | 1473 | WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS= BIT(9), |
1474 | WIPHY_FLAG_MESH_AUTH = BIT(10), | ||
1466 | }; | 1475 | }; |
1467 | 1476 | ||
1468 | struct mac_address { | 1477 | struct mac_address { |
@@ -2484,6 +2493,22 @@ void cfg80211_michael_mic_failure(struct net_device *dev, const u8 *addr, | |||
2484 | void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, gfp_t gfp); | 2493 | void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, gfp_t gfp); |
2485 | 2494 | ||
2486 | /** | 2495 | /** |
2496 | * cfg80211_notify_new_candidate - notify cfg80211 of a new mesh peer candidate | ||
2497 | * | ||
2498 | * @dev: network device | ||
2499 | * @macaddr: the MAC address of the new candidate | ||
2500 | * @ie: information elements advertised by the peer candidate | ||
2501 | * @ie_len: lenght of the information elements buffer | ||
2502 | * @gfp: allocation flags | ||
2503 | * | ||
2504 | * This function notifies cfg80211 that the mesh peer candidate has been | ||
2505 | * detected, most likely via a beacon or, less likely, via a probe response. | ||
2506 | * cfg80211 then sends a notification to userspace. | ||
2507 | */ | ||
2508 | void cfg80211_notify_new_peer_candidate(struct net_device *dev, | ||
2509 | const u8 *macaddr, const u8 *ie, u8 ie_len, gfp_t gfp); | ||
2510 | |||
2511 | /** | ||
2487 | * DOC: RFkill integration | 2512 | * DOC: RFkill integration |
2488 | * | 2513 | * |
2489 | * RFkill integration in cfg80211 is almost invisible to drivers, | 2514 | * RFkill integration in cfg80211 is almost invisible to drivers, |
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 025d4cc7bbf8..d23dd6c1329c 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1819,6 +1819,9 @@ enum ieee80211_ampdu_mlme_action { | |||
1819 | * @set_ringparam: Set tx and rx ring sizes. | 1819 | * @set_ringparam: Set tx and rx ring sizes. |
1820 | * | 1820 | * |
1821 | * @get_ringparam: Get tx and rx ring current and maximum sizes. | 1821 | * @get_ringparam: Get tx and rx ring current and maximum sizes. |
1822 | * | ||
1823 | * @tx_frames_pending: Check if there is any pending frame in the hardware | ||
1824 | * queues before entering power save. | ||
1822 | */ | 1825 | */ |
1823 | struct ieee80211_ops { | 1826 | struct ieee80211_ops { |
1824 | void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); | 1827 | void (*tx)(struct ieee80211_hw *hw, struct sk_buff *skb); |
@@ -1906,6 +1909,7 @@ struct ieee80211_ops { | |||
1906 | int (*set_ringparam)(struct ieee80211_hw *hw, u32 tx, u32 rx); | 1909 | int (*set_ringparam)(struct ieee80211_hw *hw, u32 tx, u32 rx); |
1907 | void (*get_ringparam)(struct ieee80211_hw *hw, | 1910 | void (*get_ringparam)(struct ieee80211_hw *hw, |
1908 | u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max); | 1911 | u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max); |
1912 | bool (*tx_frames_pending)(struct ieee80211_hw *hw); | ||
1909 | }; | 1913 | }; |
1910 | 1914 | ||
1911 | /** | 1915 | /** |
@@ -2223,6 +2227,18 @@ static inline int ieee80211_sta_ps_transition_ni(struct ieee80211_sta *sta, | |||
2223 | #define IEEE80211_TX_STATUS_HEADROOM 13 | 2227 | #define IEEE80211_TX_STATUS_HEADROOM 13 |
2224 | 2228 | ||
2225 | /** | 2229 | /** |
2230 | * ieee80211_sta_set_tim - set the TIM bit for a sleeping station | ||
2231 | * | ||
2232 | * If a driver buffers frames for a powersave station instead of passing | ||
2233 | * them back to mac80211 for retransmission, the station needs to be told | ||
2234 | * to wake up using the TIM bitmap in the beacon. | ||
2235 | * | ||
2236 | * This function sets the station's TIM bit - it will be cleared when the | ||
2237 | * station wakes up. | ||
2238 | */ | ||
2239 | void ieee80211_sta_set_tim(struct ieee80211_sta *sta); | ||
2240 | |||
2241 | /** | ||
2226 | * ieee80211_tx_status - transmit status callback | 2242 | * ieee80211_tx_status - transmit status callback |
2227 | * | 2243 | * |
2228 | * Call this function for all transmitted frames after they have been | 2244 | * Call this function for all transmitted frames after they have been |