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.
Showing the changes to include/net (1 of 3 files). Show all
Unified · Split
| @@ -712,7 +712,7 @@ struct cfg80211_bitrate_mask { · 711 unmodified lines | |||
| 712 | * MAC address based access control | 712 | * MAC address based access control |
| 713 | * @pbss: If set, start as a PCP instead of AP. Relevant for DMG | 713 | * @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 | */ |
| 717 | struct cfg80211_ap_settings { | 717 | struct 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 use | 1365 | * @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 mesh | 1367 | * @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 | /** |