diff options
| author | Rostislav Lisovy <lisovy@gmail.com> | 2014-11-03 04:33:18 -0500 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2014-11-04 07:18:17 -0500 |
| commit | 6e0bd6c35b021dc73a81ebd1ef79761233c48b50 (patch) | |
| tree | f3da02d8006a5ff98f3dd33a37dc1eddafd7b85c /include/uapi/linux | |
| parent | 5b3dc42b1b0db0264bbbe4ae44c15ab97bfd1e93 (diff) | |
cfg80211: 802.11p OCB mode handling
This patch adds new iface type (NL80211_IFTYPE_OCB) representing
the OCB (Outside the Context of a BSS) mode.
When establishing a connection to the network a cfg80211_join_ocb
function is called (particular nl80211_command is added as well).
A mandatory parameters during the ocb_join operation are 'center
frequency' and 'channel width (5/10 MHz)'.
Changes done in mac80211 are minimal possible required to avoid
many warnings (warning: enumeration value 'NL80211_IFTYPE_OCB'
not handled in switch) during compilation. Full functionality
(where needed) is added in the following patch.
Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nl80211.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index f7daae59248e..9b3025e4377a 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h | |||
| @@ -746,6 +746,11 @@ | |||
| 746 | * destination %NL80211_ATTR_MAC on the interface identified by | 746 | * destination %NL80211_ATTR_MAC on the interface identified by |
| 747 | * %NL80211_ATTR_IFINDEX. | 747 | * %NL80211_ATTR_IFINDEX. |
| 748 | * | 748 | * |
| 749 | * @NL80211_CMD_JOIN_OCB: Join the OCB network. The center frequency and | ||
| 750 | * bandwidth of a channel must be given. | ||
| 751 | * @NL80211_CMD_LEAVE_OCB: Leave the OCB network -- no special arguments, the | ||
| 752 | * network is determined by the network interface. | ||
| 753 | * | ||
| 749 | * @NL80211_CMD_MAX: highest used command number | 754 | * @NL80211_CMD_MAX: highest used command number |
| 750 | * @__NL80211_CMD_AFTER_LAST: internal use | 755 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 751 | */ | 756 | */ |
| @@ -922,6 +927,9 @@ enum nl80211_commands { | |||
| 922 | 927 | ||
| 923 | NL80211_CMD_GET_MPP, | 928 | NL80211_CMD_GET_MPP, |
| 924 | 929 | ||
| 930 | NL80211_CMD_JOIN_OCB, | ||
| 931 | NL80211_CMD_LEAVE_OCB, | ||
| 932 | |||
| 925 | /* add new commands above here */ | 933 | /* add new commands above here */ |
| 926 | 934 | ||
| 927 | /* used to define NL80211_CMD_MAX below */ | 935 | /* used to define NL80211_CMD_MAX below */ |
| @@ -2074,6 +2082,8 @@ enum nl80211_attrs { | |||
| 2074 | * and therefore can't be created in the normal ways, use the | 2082 | * and therefore can't be created in the normal ways, use the |
| 2075 | * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE | 2083 | * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE |
| 2076 | * commands to create and destroy one | 2084 | * commands to create and destroy one |
| 2085 | * @NL80211_IF_TYPE_OCB: Outside Context of a BSS | ||
| 2086 | * This mode corresponds to the MIB variable dot11OCBActivated=true | ||
| 2077 | * @NL80211_IFTYPE_MAX: highest interface type number currently defined | 2087 | * @NL80211_IFTYPE_MAX: highest interface type number currently defined |
| 2078 | * @NUM_NL80211_IFTYPES: number of defined interface types | 2088 | * @NUM_NL80211_IFTYPES: number of defined interface types |
| 2079 | * | 2089 | * |
| @@ -2093,6 +2103,7 @@ enum nl80211_iftype { | |||
| 2093 | NL80211_IFTYPE_P2P_CLIENT, | 2103 | NL80211_IFTYPE_P2P_CLIENT, |
| 2094 | NL80211_IFTYPE_P2P_GO, | 2104 | NL80211_IFTYPE_P2P_GO, |
| 2095 | NL80211_IFTYPE_P2P_DEVICE, | 2105 | NL80211_IFTYPE_P2P_DEVICE, |
| 2106 | NL80211_IFTYPE_OCB, | ||
| 2096 | 2107 | ||
| 2097 | /* keep last */ | 2108 | /* keep last */ |
| 2098 | NUM_NL80211_IFTYPES, | 2109 | NUM_NL80211_IFTYPES, |
