liyujie
2025-08-28 b3810562527858a3b3d98ffa6e9c9c5b0f4a9a8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
library fuchsia.wlan.mlme;
using fuchsia.wlan.stats;
using fuchsia.wlan.minstrel;
 
// Custom primitives for communicating between the wlan service and the MLME drivers.
// The primitives defined here are not part of the official 802.11 MLME SAP interface specification,
// but follow the same principle for the sake of consistency.
 
 
// SIGNAL_REPORT.indication
 
struct SignalReportIndication {
    int8 rssi_dbm;
};
 
// EAPOL.indication
 
struct EapolIndication {
    array<uint8>:6 src_addr;
    array<uint8>:6 dst_addr;
    vector<uint8> data;
};
 
enum MacRole {
    CLIENT = 1;
    AP = 2;
    MESH = 3;
};
 
 
// BandInfo groups capabilities defined per band.
// This grouping is the industry's de factor standard.
struct BandCapabilities {
    Band band_id;
    vector<uint16> basic_rates;
    uint16 base_frequency;
    vector<uint8> channels;
 
    CapabilityInfo cap;
    HtCapabilities? ht_cap;
    VhtCapabilities? vht_cap;
};
 
struct DeviceInfo {
    array<uint8>:6 mac_addr;
    MacRole role;
    vector<BandCapabilities> bands;
};
 
// STATS_QUERY.response
 
struct StatsQueryResponse {
    fuchsia.wlan.stats.IfaceStats stats;
};
 
struct MinstrelListResponse {
    fuchsia.wlan.minstrel.Peers peers;
};
 
struct MinstrelStatsRequest {
    array<uint8>:6 mac_addr;
};
 
struct MinstrelStatsResponse {
    fuchsia.wlan.minstrel.Peer? peer;
};
 
// Method ordinals are defined in wlan_mlme.fidl to prevent error prone overlaps with official
// MLME primitives.