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.
Showing the changes to include/uapi/linux (1 of 15 files). Show all
Unified · Split
| @@ -746,6 +746,11 @@ · 745 unmodified lines | ||
| 746 | 746 | * destination %NL80211_ATTR_MAC on the interface identified by |
| 747 | 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 | 754 | * @NL80211_CMD_MAX: highest used command number |
| 750 | 755 | * @__NL80211_CMD_AFTER_LAST: internal use |
| 751 | 756 | */ |
| @@ -922,6 +927,9 @@ enum nl80211_commands { · 170 unmodified lines | ||
| 922 | 927 | |
| 923 | 928 | NL80211_CMD_GET_MPP, |
| 924 | 929 | |
| 930 | + NL80211_CMD_JOIN_OCB, | |
| 931 | + NL80211_CMD_LEAVE_OCB, | |
| 932 | + | |
| 925 | 933 | /* add new commands above here */ |
| 926 | 934 | |
| 927 | 935 | /* used to define NL80211_CMD_MAX below */ |
| @@ -2074,6 +2082,8 @@ enum nl80211_attrs { · 1146 unmodified lines | ||
| 2074 | 2082 | * and therefore can't be created in the normal ways, use the |
| 2075 | 2083 | * %NL80211_CMD_START_P2P_DEVICE and %NL80211_CMD_STOP_P2P_DEVICE |
| 2076 | 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 | 2087 | * @NL80211_IFTYPE_MAX: highest interface type number currently defined |
| 2078 | 2088 | * @NUM_NL80211_IFTYPES: number of defined interface types |
| 2079 | 2089 | * |
| @@ -2093,6 +2103,7 @@ enum nl80211_iftype { · 13 unmodified lines | ||
| 2093 | 2103 | NL80211_IFTYPE_P2P_CLIENT, |
| 2094 | 2104 | NL80211_IFTYPE_P2P_GO, |
| 2095 | 2105 | NL80211_IFTYPE_P2P_DEVICE, |
| 2106 | + NL80211_IFTYPE_OCB, | |
| 2096 | 2107 | |
| 2097 | 2108 | /* keep last */ |
| 2098 | 2109 | NUM_NL80211_IFTYPES, |