History

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.

Rostislav Lisovy committed 12 years ago

Commit 6e0bd6c1 parent 5b3dc4215 files · +238 −2Browse files

Showing the changes to include/uapi/linux (1 of 15 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+11−0
@@ -746,6 +746,11 @@ · 745 unmodified lines
746 * destination %NL80211_ATTR_MAC on the interface identified by746 * 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 number754 * @NL80211_CMD_MAX: highest used command number
750 * @__NL80211_CMD_AFTER_LAST: internal use755 * @__NL80211_CMD_AFTER_LAST: internal use
751 */756 */
@@ -922,6 +927,9 @@ enum nl80211_commands { · 170 unmodified lines
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 { · 1146 unmodified lines
2074 * and therefore can't be created in the normal ways, use the2082 * and therefore can't be created in the normal ways, use the
2075 * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE2083 * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE
2076 * commands to create and destroy one2084 * 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 defined2087 * @NL80211_IFTYPE_MAX: highest interface type number currently defined
2078 * @NUM_NL80211_IFTYPES: number of defined interface types2088 * @NUM_NL80211_IFTYPES: number of defined interface types
2079 *2089 *
@@ -2093,6 +2103,7 @@ enum nl80211_iftype { · 13 unmodified lines
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,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t