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
746746 * destination %NL80211_ATTR_MAC on the interface identified by
747747 * %NL80211_ATTR_IFINDEX.
748748 *
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+ *
749754 * @NL80211_CMD_MAX: highest used command number
750755 * @__NL80211_CMD_AFTER_LAST: internal use
751756 */
@@ -922,6 +927,9 @@ enum nl80211_commands { · 170 unmodified lines
922927
923928 NL80211_CMD_GET_MPP,
924929
930+ NL80211_CMD_JOIN_OCB,
931+ NL80211_CMD_LEAVE_OCB,
932+
925933 /* add new commands above here */
926934
927935 /* used to define NL80211_CMD_MAX below */
@@ -2074,6 +2082,8 @@ enum nl80211_attrs { · 1146 unmodified lines
20742082 * and therefore can't be created in the normal ways, use the
20752083 * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE
20762084 * 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
20772087 * @NL80211_IFTYPE_MAX: highest interface type number currently defined
20782088 * @NUM_NL80211_IFTYPES: number of defined interface types
20792089 *
@@ -2093,6 +2103,7 @@ enum nl80211_iftype { · 13 unmodified lines
20932103 NL80211_IFTYPE_P2P_CLIENT,
20942104 NL80211_IFTYPE_P2P_GO,
20952105 NL80211_IFTYPE_P2P_DEVICE,
2106+ NL80211_IFTYPE_OCB,
20962107
20972108 /* keep last */
20982109 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