Skip to content

Commit a41286a

Browse files
Hante MeulemanKalle Valo
Hante Meuleman
authored and
Kalle Valo
committed
brcmfmac: Move scheduled scan related interface layer structs
All interface layer related to scheduled scan are moved in fwil_types.h Reviewed-by: Arend Van Spriel <[email protected]> Reviewed-by: Pieter-Paul Giesberts <[email protected]> Signed-off-by: Hante Meuleman <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent f3fb750 commit a41286a

File tree

2 files changed

+81
-81
lines changed

2 files changed

+81
-81
lines changed

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.h

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -210,87 +210,6 @@ struct escan_info {
210210
struct cfg80211_scan_request *request);
211211
};
212212

213-
/**
214-
* struct brcmf_pno_param_le - PNO scan configuration parameters
215-
*
216-
* @version: PNO parameters version.
217-
* @scan_freq: scan frequency.
218-
* @lost_network_timeout: #sec. to declare discovered network as lost.
219-
* @flags: Bit field to control features of PFN such as sort criteria auto
220-
* enable switch and background scan.
221-
* @rssi_margin: Margin to avoid jitter for choosing a PFN based on RSSI sort
222-
* criteria.
223-
* @bestn: number of best networks in each scan.
224-
* @mscan: number of scans recorded.
225-
* @repeat: minimum number of scan intervals before scan frequency changes
226-
* in adaptive scan.
227-
* @exp: exponent of 2 for maximum scan interval.
228-
* @slow_freq: slow scan period.
229-
*/
230-
struct brcmf_pno_param_le {
231-
__le32 version;
232-
__le32 scan_freq;
233-
__le32 lost_network_timeout;
234-
__le16 flags;
235-
__le16 rssi_margin;
236-
u8 bestn;
237-
u8 mscan;
238-
u8 repeat;
239-
u8 exp;
240-
__le32 slow_freq;
241-
};
242-
243-
/**
244-
* struct brcmf_pno_net_param_le - scan parameters per preferred network.
245-
*
246-
* @ssid: ssid name and its length.
247-
* @flags: bit2: hidden.
248-
* @infra: BSS vs IBSS.
249-
* @auth: Open vs Closed.
250-
* @wpa_auth: WPA type.
251-
* @wsec: wsec value.
252-
*/
253-
struct brcmf_pno_net_param_le {
254-
struct brcmf_ssid_le ssid;
255-
__le32 flags;
256-
__le32 infra;
257-
__le32 auth;
258-
__le32 wpa_auth;
259-
__le32 wsec;
260-
};
261-
262-
/**
263-
* struct brcmf_pno_net_info_le - information per found network.
264-
*
265-
* @bssid: BSS network identifier.
266-
* @channel: channel number only.
267-
* @SSID_len: length of ssid.
268-
* @SSID: ssid characters.
269-
* @RSSI: receive signal strength (in dBm).
270-
* @timestamp: age in seconds.
271-
*/
272-
struct brcmf_pno_net_info_le {
273-
u8 bssid[ETH_ALEN];
274-
u8 channel;
275-
u8 SSID_len;
276-
u8 SSID[32];
277-
__le16 RSSI;
278-
__le16 timestamp;
279-
};
280-
281-
/**
282-
* struct brcmf_pno_scanresults_le - result returned in PNO NET FOUND event.
283-
*
284-
* @version: PNO version identifier.
285-
* @status: indicates completion status of PNO scan.
286-
* @count: amount of brcmf_pno_net_info_le entries appended.
287-
*/
288-
struct brcmf_pno_scanresults_le {
289-
__le32 version;
290-
__le32 status;
291-
__le32 count;
292-
};
293-
294213
/**
295214
* struct brcmf_cfg80211_vif_event - virtual interface event information.
296215
*

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,4 +670,85 @@ struct brcmf_pmk_list_le {
670670
struct brcmf_pmksa pmk[BRCMF_MAXPMKID];
671671
};
672672

673+
/**
674+
* struct brcmf_pno_param_le - PNO scan configuration parameters
675+
*
676+
* @version: PNO parameters version.
677+
* @scan_freq: scan frequency.
678+
* @lost_network_timeout: #sec. to declare discovered network as lost.
679+
* @flags: Bit field to control features of PFN such as sort criteria auto
680+
* enable switch and background scan.
681+
* @rssi_margin: Margin to avoid jitter for choosing a PFN based on RSSI sort
682+
* criteria.
683+
* @bestn: number of best networks in each scan.
684+
* @mscan: number of scans recorded.
685+
* @repeat: minimum number of scan intervals before scan frequency changes
686+
* in adaptive scan.
687+
* @exp: exponent of 2 for maximum scan interval.
688+
* @slow_freq: slow scan period.
689+
*/
690+
struct brcmf_pno_param_le {
691+
__le32 version;
692+
__le32 scan_freq;
693+
__le32 lost_network_timeout;
694+
__le16 flags;
695+
__le16 rssi_margin;
696+
u8 bestn;
697+
u8 mscan;
698+
u8 repeat;
699+
u8 exp;
700+
__le32 slow_freq;
701+
};
702+
703+
/**
704+
* struct brcmf_pno_net_param_le - scan parameters per preferred network.
705+
*
706+
* @ssid: ssid name and its length.
707+
* @flags: bit2: hidden.
708+
* @infra: BSS vs IBSS.
709+
* @auth: Open vs Closed.
710+
* @wpa_auth: WPA type.
711+
* @wsec: wsec value.
712+
*/
713+
struct brcmf_pno_net_param_le {
714+
struct brcmf_ssid_le ssid;
715+
__le32 flags;
716+
__le32 infra;
717+
__le32 auth;
718+
__le32 wpa_auth;
719+
__le32 wsec;
720+
};
721+
722+
/**
723+
* struct brcmf_pno_net_info_le - information per found network.
724+
*
725+
* @bssid: BSS network identifier.
726+
* @channel: channel number only.
727+
* @SSID_len: length of ssid.
728+
* @SSID: ssid characters.
729+
* @RSSI: receive signal strength (in dBm).
730+
* @timestamp: age in seconds.
731+
*/
732+
struct brcmf_pno_net_info_le {
733+
u8 bssid[ETH_ALEN];
734+
u8 channel;
735+
u8 SSID_len;
736+
u8 SSID[32];
737+
__le16 RSSI;
738+
__le16 timestamp;
739+
};
740+
741+
/**
742+
* struct brcmf_pno_scanresults_le - result returned in PNO NET FOUND event.
743+
*
744+
* @version: PNO version identifier.
745+
* @status: indicates completion status of PNO scan.
746+
* @count: amount of brcmf_pno_net_info_le entries appended.
747+
*/
748+
struct brcmf_pno_scanresults_le {
749+
__le32 version;
750+
__le32 status;
751+
__le32 count;
752+
};
753+
673754
#endif /* FWIL_TYPES_H_ */

0 commit comments

Comments
 (0)