diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-11-08 12:31:02 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-26 06:42:58 -0500 |
commit | 42d97a599eb6b2aab3a401b3e5799a399d6c7652 (patch) | |
tree | 1905b71c2092ad299503515dd0d59fa74573cd12 /net/wireless/trace.h | |
parent | 028e8da0723a6f6a00d9d1e3dae9ad448a28987e (diff) |
cfg80211: remove remain-on-channel channel type
As mwifiex (and mac80211 in the software case) are the
only drivers actually implementing remain-on-channel
with channel type, userspace can't be relying on it.
This is the case, as it's used only for P2P operations
right now.
Rather than adding a flag to tell userspace whether or
not it can actually rely on it, simplify all the code
by removing the ability to use different channel types.
Leave only the validation of the attribute, so that if
we extend it again later (with the needed capability
flag), it can't break userspace sending invalid data.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/trace.h')
-rw-r--r-- | net/wireless/trace.h | 52 |
1 files changed, 17 insertions, 35 deletions
diff --git a/net/wireless/trace.h b/net/wireless/trace.h index f264c20a7090..ed10833f9a3a 100644 --- a/net/wireless/trace.h +++ b/net/wireless/trace.h | |||
@@ -1573,25 +1573,22 @@ DEFINE_EVENT(rdev_pmksa, rdev_del_pmksa, | |||
1573 | TRACE_EVENT(rdev_remain_on_channel, | 1573 | TRACE_EVENT(rdev_remain_on_channel, |
1574 | TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, | 1574 | TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, |
1575 | struct ieee80211_channel *chan, | 1575 | struct ieee80211_channel *chan, |
1576 | enum nl80211_channel_type channel_type, unsigned int duration), | 1576 | unsigned int duration), |
1577 | TP_ARGS(wiphy, wdev, chan, channel_type, duration), | 1577 | TP_ARGS(wiphy, wdev, chan, duration), |
1578 | TP_STRUCT__entry( | 1578 | TP_STRUCT__entry( |
1579 | WIPHY_ENTRY | 1579 | WIPHY_ENTRY |
1580 | WDEV_ENTRY | 1580 | WDEV_ENTRY |
1581 | CHAN_ENTRY | 1581 | CHAN_ENTRY |
1582 | __field(enum nl80211_channel_type, channel_type) | ||
1583 | __field(unsigned int, duration) | 1582 | __field(unsigned int, duration) |
1584 | ), | 1583 | ), |
1585 | TP_fast_assign( | 1584 | TP_fast_assign( |
1586 | WIPHY_ASSIGN; | 1585 | WIPHY_ASSIGN; |
1587 | WDEV_ASSIGN; | 1586 | WDEV_ASSIGN; |
1588 | CHAN_ASSIGN(chan); | 1587 | CHAN_ASSIGN(chan); |
1589 | __entry->channel_type = channel_type; | ||
1590 | __entry->duration = duration; | 1588 | __entry->duration = duration; |
1591 | ), | 1589 | ), |
1592 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", channel type: %d, duration: %u", | 1590 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", duration: %u", |
1593 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->channel_type, | 1591 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, __entry->duration) |
1594 | __entry->duration) | ||
1595 | ); | 1592 | ); |
1596 | 1593 | ||
1597 | TRACE_EVENT(rdev_return_int_cookie, | 1594 | TRACE_EVENT(rdev_return_int_cookie, |
@@ -1631,18 +1628,13 @@ TRACE_EVENT(rdev_cancel_remain_on_channel, | |||
1631 | TRACE_EVENT(rdev_mgmt_tx, | 1628 | TRACE_EVENT(rdev_mgmt_tx, |
1632 | TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, | 1629 | TP_PROTO(struct wiphy *wiphy, struct wireless_dev *wdev, |
1633 | struct ieee80211_channel *chan, bool offchan, | 1630 | struct ieee80211_channel *chan, bool offchan, |
1634 | enum nl80211_channel_type channel_type, | 1631 | unsigned int wait, bool no_cck, bool dont_wait_for_ack), |
1635 | bool channel_type_valid, unsigned int wait, bool no_cck, | 1632 | TP_ARGS(wiphy, wdev, chan, offchan, wait, no_cck, dont_wait_for_ack), |
1636 | bool dont_wait_for_ack), | ||
1637 | TP_ARGS(wiphy, wdev, chan, offchan, channel_type, channel_type_valid, | ||
1638 | wait, no_cck, dont_wait_for_ack), | ||
1639 | TP_STRUCT__entry( | 1633 | TP_STRUCT__entry( |
1640 | WIPHY_ENTRY | 1634 | WIPHY_ENTRY |
1641 | WDEV_ENTRY | 1635 | WDEV_ENTRY |
1642 | CHAN_ENTRY | 1636 | CHAN_ENTRY |
1643 | __field(bool, offchan) | 1637 | __field(bool, offchan) |
1644 | __field(enum nl80211_channel_type, channel_type) | ||
1645 | __field(bool, channel_type_valid) | ||
1646 | __field(unsigned int, wait) | 1638 | __field(unsigned int, wait) |
1647 | __field(bool, no_cck) | 1639 | __field(bool, no_cck) |
1648 | __field(bool, dont_wait_for_ack) | 1640 | __field(bool, dont_wait_for_ack) |
@@ -1652,18 +1644,14 @@ TRACE_EVENT(rdev_mgmt_tx, | |||
1652 | WDEV_ASSIGN; | 1644 | WDEV_ASSIGN; |
1653 | CHAN_ASSIGN(chan); | 1645 | CHAN_ASSIGN(chan); |
1654 | __entry->offchan = offchan; | 1646 | __entry->offchan = offchan; |
1655 | __entry->channel_type = channel_type; | ||
1656 | __entry->channel_type_valid = channel_type_valid; | ||
1657 | __entry->wait = wait; | 1647 | __entry->wait = wait; |
1658 | __entry->no_cck = no_cck; | 1648 | __entry->no_cck = no_cck; |
1659 | __entry->dont_wait_for_ack = dont_wait_for_ack; | 1649 | __entry->dont_wait_for_ack = dont_wait_for_ack; |
1660 | ), | 1650 | ), |
1661 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", offchan: %s, " | 1651 | TP_printk(WIPHY_PR_FMT WDEV_PR_FMT CHAN_PR_FMT ", offchan: %s," |
1662 | "channel type: %d, channel type valid: %s, wait: %u, " | 1652 | " wait: %u, no cck: %s, dont wait for ack: %s", |
1663 | "no cck: %s, dont wait for ack: %s", | ||
1664 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, | 1653 | WIPHY_PR_ARG, WDEV_PR_ARG, CHAN_PR_ARG, |
1665 | BOOL_TO_STR(__entry->offchan), __entry->channel_type, | 1654 | BOOL_TO_STR(__entry->offchan), __entry->wait, |
1666 | BOOL_TO_STR(__entry->channel_type_valid), __entry->wait, | ||
1667 | BOOL_TO_STR(__entry->no_cck), | 1655 | BOOL_TO_STR(__entry->no_cck), |
1668 | BOOL_TO_STR(__entry->dont_wait_for_ack)) | 1656 | BOOL_TO_STR(__entry->dont_wait_for_ack)) |
1669 | ); | 1657 | ); |
@@ -1894,47 +1882,41 @@ TRACE_EVENT(cfg80211_michael_mic_failure, | |||
1894 | TRACE_EVENT(cfg80211_ready_on_channel, | 1882 | TRACE_EVENT(cfg80211_ready_on_channel, |
1895 | TP_PROTO(struct wireless_dev *wdev, u64 cookie, | 1883 | TP_PROTO(struct wireless_dev *wdev, u64 cookie, |
1896 | struct ieee80211_channel *chan, | 1884 | struct ieee80211_channel *chan, |
1897 | enum nl80211_channel_type channel_type, unsigned int duration), | 1885 | unsigned int duration), |
1898 | TP_ARGS(wdev, cookie, chan, channel_type, duration), | 1886 | TP_ARGS(wdev, cookie, chan, duration), |
1899 | TP_STRUCT__entry( | 1887 | TP_STRUCT__entry( |
1900 | WDEV_ENTRY | 1888 | WDEV_ENTRY |
1901 | __field(u64, cookie) | 1889 | __field(u64, cookie) |
1902 | CHAN_ENTRY | 1890 | CHAN_ENTRY |
1903 | __field(enum nl80211_channel_type, channel_type) | ||
1904 | __field(unsigned int, duration) | 1891 | __field(unsigned int, duration) |
1905 | ), | 1892 | ), |
1906 | TP_fast_assign( | 1893 | TP_fast_assign( |
1907 | WDEV_ASSIGN; | 1894 | WDEV_ASSIGN; |
1908 | __entry->cookie = cookie; | 1895 | __entry->cookie = cookie; |
1909 | CHAN_ASSIGN(chan); | 1896 | CHAN_ASSIGN(chan); |
1910 | __entry->channel_type = channel_type; | ||
1911 | __entry->duration = duration; | 1897 | __entry->duration = duration; |
1912 | ), | 1898 | ), |
1913 | TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", channel type: %d, duration: %u", | 1899 | TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", duration: %u", |
1914 | WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, | 1900 | WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, |
1915 | __entry->channel_type, __entry->duration) | 1901 | __entry->duration) |
1916 | ); | 1902 | ); |
1917 | 1903 | ||
1918 | TRACE_EVENT(cfg80211_ready_on_channel_expired, | 1904 | TRACE_EVENT(cfg80211_ready_on_channel_expired, |
1919 | TP_PROTO(struct wireless_dev *wdev, u64 cookie, | 1905 | TP_PROTO(struct wireless_dev *wdev, u64 cookie, |
1920 | struct ieee80211_channel *chan, | 1906 | struct ieee80211_channel *chan), |
1921 | enum nl80211_channel_type channel_type), | 1907 | TP_ARGS(wdev, cookie, chan), |
1922 | TP_ARGS(wdev, cookie, chan, channel_type), | ||
1923 | TP_STRUCT__entry( | 1908 | TP_STRUCT__entry( |
1924 | WDEV_ENTRY | 1909 | WDEV_ENTRY |
1925 | __field(u64, cookie) | 1910 | __field(u64, cookie) |
1926 | CHAN_ENTRY | 1911 | CHAN_ENTRY |
1927 | __field(enum nl80211_channel_type, channel_type) | ||
1928 | ), | 1912 | ), |
1929 | TP_fast_assign( | 1913 | TP_fast_assign( |
1930 | WDEV_ASSIGN; | 1914 | WDEV_ASSIGN; |
1931 | __entry->cookie = cookie; | 1915 | __entry->cookie = cookie; |
1932 | CHAN_ASSIGN(chan); | 1916 | CHAN_ASSIGN(chan); |
1933 | __entry->channel_type = channel_type; | ||
1934 | ), | 1917 | ), |
1935 | TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT ", channel type: %d", | 1918 | TP_printk(WDEV_PR_FMT ", cookie: %llu, " CHAN_PR_FMT, |
1936 | WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG, | 1919 | WDEV_PR_ARG, __entry->cookie, CHAN_PR_ARG) |
1937 | __entry->channel_type) | ||
1938 | ); | 1920 | ); |
1939 | 1921 | ||
1940 | TRACE_EVENT(cfg80211_new_sta, | 1922 | TRACE_EVENT(cfg80211_new_sta, |