aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-08-21 04:56:56 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-21 04:56:56 -0400
commitf8f2109d4f6c525f893f6f2901ae62372e83245e (patch)
treee20b095973d45eb2360ffa157ad161536c2ddbe9 /include
parentbb81b2ddfa194b6d12761a350b5b5985cecae0a9 (diff)
parenta2c3f6567c9ac327f1ef1272551f3a7595ec885e (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h2
-rw-r--r--include/net/mac80211.h36
2 files changed, 17 insertions, 21 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 0b146bb2dd14..3d874c620219 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1325,6 +1325,8 @@ struct wireless_dev {
1325 1325
1326 struct mutex mtx; 1326 struct mutex mtx;
1327 1327
1328 struct work_struct cleanup_work;
1329
1328 /* currently used for IBSS and SME - might be rearranged later */ 1330 /* currently used for IBSS and SME - might be rearranged later */
1329 u8 ssid[IEEE80211_MAX_SSID_LEN]; 1331 u8 ssid[IEEE80211_MAX_SSID_LEN];
1330 u8 ssid_len; 1332 u8 ssid_len;
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 76d43e12cc29..aac84d7bd46e 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -583,7 +583,6 @@ enum ieee80211_conf_flags {
583/** 583/**
584 * enum ieee80211_conf_changed - denotes which configuration changed 584 * enum ieee80211_conf_changed - denotes which configuration changed
585 * 585 *
586 * @_IEEE80211_CONF_CHANGE_RADIO_ENABLED: DEPRECATED
587 * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed 586 * @IEEE80211_CONF_CHANGE_LISTEN_INTERVAL: the listen interval changed
588 * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed 587 * @IEEE80211_CONF_CHANGE_RADIOTAP: the radiotap flag changed
589 * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed 588 * @IEEE80211_CONF_CHANGE_PS: the PS flag or dynamic PS timeout changed
@@ -593,7 +592,6 @@ enum ieee80211_conf_flags {
593 * @IEEE80211_CONF_CHANGE_IDLE: Idle flag changed 592 * @IEEE80211_CONF_CHANGE_IDLE: Idle flag changed
594 */ 593 */
595enum ieee80211_conf_changed { 594enum ieee80211_conf_changed {
596 _IEEE80211_CONF_CHANGE_RADIO_ENABLED = BIT(0),
597 IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2), 595 IEEE80211_CONF_CHANGE_LISTEN_INTERVAL = BIT(2),
598 IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3), 596 IEEE80211_CONF_CHANGE_RADIOTAP = BIT(3),
599 IEEE80211_CONF_CHANGE_PS = BIT(4), 597 IEEE80211_CONF_CHANGE_PS = BIT(4),
@@ -603,14 +601,6 @@ enum ieee80211_conf_changed {
603 IEEE80211_CONF_CHANGE_IDLE = BIT(8), 601 IEEE80211_CONF_CHANGE_IDLE = BIT(8),
604}; 602};
605 603
606static inline __deprecated enum ieee80211_conf_changed
607__IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
608{
609 return _IEEE80211_CONF_CHANGE_RADIO_ENABLED;
610}
611#define IEEE80211_CONF_CHANGE_RADIO_ENABLED \
612 __IEEE80211_CONF_CHANGE_RADIO_ENABLED()
613
614/** 604/**
615 * struct ieee80211_conf - configuration of the device 605 * struct ieee80211_conf - configuration of the device
616 * 606 *
@@ -618,9 +608,6 @@ __IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
618 * 608 *
619 * @flags: configuration flags defined above 609 * @flags: configuration flags defined above
620 * 610 *
621 * @radio_enabled: when zero, driver is required to switch off the radio.
622 * @beacon_int: DEPRECATED, DO NOT USE
623 *
624 * @listen_interval: listen interval in units of beacon interval 611 * @listen_interval: listen interval in units of beacon interval
625 * @max_sleep_period: the maximum number of beacon intervals to sleep for 612 * @max_sleep_period: the maximum number of beacon intervals to sleep for
626 * before checking the beacon for a TIM bit (managed mode only); this 613 * before checking the beacon for a TIM bit (managed mode only); this
@@ -644,13 +631,11 @@ __IEEE80211_CONF_CHANGE_RADIO_ENABLED(void)
644 * number of transmissions not the number of retries 631 * number of transmissions not the number of retries
645 */ 632 */
646struct ieee80211_conf { 633struct ieee80211_conf {
647 int __deprecated beacon_int;
648 u32 flags; 634 u32 flags;
649 int power_level, dynamic_ps_timeout; 635 int power_level, dynamic_ps_timeout;
650 int max_sleep_period; 636 int max_sleep_period;
651 637
652 u16 listen_interval; 638 u16 listen_interval;
653 bool __deprecated radio_enabled;
654 639
655 u8 long_frame_max_tx_count, short_frame_max_tx_count; 640 u8 long_frame_max_tx_count, short_frame_max_tx_count;
656 641
@@ -1219,10 +1204,13 @@ ieee80211_get_alt_retry_rate(const struct ieee80211_hw *hw,
1219 * the driver's configure_filter() function which frames should be 1204 * the driver's configure_filter() function which frames should be
1220 * passed to mac80211 and which should be filtered out. 1205 * passed to mac80211 and which should be filtered out.
1221 * 1206 *
1222 * The configure_filter() callback is invoked with the parameters 1207 * Before configure_filter() is invoked, the prepare_multicast()
1223 * @mc_count and @mc_list for the combined multicast address list 1208 * callback is invoked with the parameters @mc_count and @mc_list
1224 * of all virtual interfaces, @changed_flags telling which flags 1209 * for the combined multicast address list of all virtual interfaces.
1225 * were changed and @total_flags with the new flag states. 1210 * It's use is optional, and it returns a u64 that is passed to
1211 * configure_filter(). Additionally, configure_filter() has the
1212 * arguments @changed_flags telling which flags were changed and
1213 * @total_flags with the new flag states.
1226 * 1214 *
1227 * If your device has no multicast address filters your driver will 1215 * If your device has no multicast address filters your driver will
1228 * need to check both the %FIF_ALLMULTI flag and the @mc_count 1216 * need to check both the %FIF_ALLMULTI flag and the @mc_count
@@ -1375,9 +1363,13 @@ enum ieee80211_ampdu_mlme_action {
1375 * for association indication. The @changed parameter indicates which 1363 * for association indication. The @changed parameter indicates which
1376 * of the bss parameters has changed when a call is made. 1364 * of the bss parameters has changed when a call is made.
1377 * 1365 *
1366 * @prepare_multicast: Prepare for multicast filter configuration.
1367 * This callback is optional, and its return value is passed
1368 * to configure_filter(). This callback must be atomic.
1369 *
1378 * @configure_filter: Configure the device's RX filter. 1370 * @configure_filter: Configure the device's RX filter.
1379 * See the section "Frame filtering" for more information. 1371 * See the section "Frame filtering" for more information.
1380 * This callback must be implemented and atomic. 1372 * This callback must be implemented.
1381 * 1373 *
1382 * @set_tim: Set TIM bit. mac80211 calls this function when a TIM bit 1374 * @set_tim: Set TIM bit. mac80211 calls this function when a TIM bit
1383 * must be set or cleared for a given STA. Must be atomic. 1375 * must be set or cleared for a given STA. Must be atomic.
@@ -1479,10 +1471,12 @@ struct ieee80211_ops {
1479 struct ieee80211_vif *vif, 1471 struct ieee80211_vif *vif,
1480 struct ieee80211_bss_conf *info, 1472 struct ieee80211_bss_conf *info,
1481 u32 changed); 1473 u32 changed);
1474 u64 (*prepare_multicast)(struct ieee80211_hw *hw,
1475 int mc_count, struct dev_addr_list *mc_list);
1482 void (*configure_filter)(struct ieee80211_hw *hw, 1476 void (*configure_filter)(struct ieee80211_hw *hw,
1483 unsigned int changed_flags, 1477 unsigned int changed_flags,
1484 unsigned int *total_flags, 1478 unsigned int *total_flags,
1485 int mc_count, struct dev_addr_list *mc_list); 1479 u64 multicast);
1486 int (*set_tim)(struct ieee80211_hw *hw, struct ieee80211_sta *sta, 1480 int (*set_tim)(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
1487 bool set); 1481 bool set);
1488 int (*set_key)(struct ieee80211_hw *hw, enum set_key_cmd cmd, 1482 int (*set_key)(struct ieee80211_hw *hw, enum set_key_cmd cmd,