History

cfg80211: add checks for beacon rate, extend to mesh

The previous commit added support for specifying the beacon rate for AP mode. Add features checks to this, and extend it to also support the rate configuration for mesh networks. For IBSS it's not as simple due to joining etc., so that's not yet supported.

Johannes Berg committed 10 years ago

Commit 8564e381 parent a7c7fbf3 files · +54 −13Browse files

Showing the changes to include/net (1 of 3 files). Show all

Unified · Split

include/net/cfg80211.h+3−1
@@ -712,7 +712,7 @@ struct cfg80211_bitrate_mask { · 711 unmodified lines
712 * MAC address based access control712 * MAC address based access control
713 * @pbss: If set, start as a PCP instead of AP. Relevant for DMG713 * @pbss: If set, start as a PCP instead of AP. Relevant for DMG
714 * networks.714 * networks.
715 * @beacon_rate: masks for setting user configured beacon tx rate.715 * @beacon_rate: bitrate to be used for beacons
716 */716 */
717struct cfg80211_ap_settings {717struct cfg80211_ap_settings {
718 struct cfg80211_chan_def chandef;718 struct cfg80211_chan_def chandef;
@@ -1365,6 +1365,7 @@ struct mesh_config { · 646 unmodified lines
1365 * @beacon_interval: beacon interval to use1365 * @beacon_interval: beacon interval to use
1366 * @mcast_rate: multicat rate for Mesh Node [6Mbps is the default for 802.11a]1366 * @mcast_rate: multicat rate for Mesh Node [6Mbps is the default for 802.11a]
1367 * @basic_rates: basic rates to use when creating the mesh1367 * @basic_rates: basic rates to use when creating the mesh
1368 * @beacon_rate: bitrate to be used for beacons
1368 *1369 *
1369 * These parameters are fixed when the mesh is created.1370 * These parameters are fixed when the mesh is created.
1370 */1371 */
@@ -1385,6 +1386,7 @@ struct mesh_setup { · 14 unmodified lines
1385 u16 beacon_interval;1386 u16 beacon_interval;
1386 int mcast_rate[NUM_NL80211_BANDS];1387 int mcast_rate[NUM_NL80211_BANDS];
1387 u32 basic_rates;1388 u32 basic_rates;
1389 struct cfg80211_bitrate_mask beacon_rate;
1388};1390};
1389 1391
1390/**1392/**

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