cfg80211.h (adff403fe7a870c5b7a2d7e003d445c3b409bc0c) | cfg80211.h (673d62fc359b0cb7a70af42c36d2fa54fb29452a) |
---|---|
1/*- 2 * Copyright (c) 2020-2023 The FreeBSD Foundation 3 * Copyright (c) 2021-2022 Bjoern A. Zeeb 4 * 5 * This software was developed by Björn Zeeb under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1246 unchanged lines hidden (view full) --- 1255uint32_t linuxkpi_ieee80211_frequency_to_channel(uint32_t, uint32_t); 1256struct linuxkpi_ieee80211_channel * 1257 linuxkpi_ieee80211_get_channel(struct wiphy *, uint32_t); 1258struct cfg80211_bss *linuxkpi_cfg80211_get_bss(struct wiphy *, 1259 struct linuxkpi_ieee80211_channel *, const uint8_t *, 1260 const uint8_t *, size_t, enum ieee80211_bss_type, enum ieee80211_privacy); 1261void linuxkpi_cfg80211_put_bss(struct wiphy *, struct cfg80211_bss *); 1262void linuxkpi_cfg80211_bss_flush(struct wiphy *); | 1/*- 2 * Copyright (c) 2020-2023 The FreeBSD Foundation 3 * Copyright (c) 2021-2022 Bjoern A. Zeeb 4 * 5 * This software was developed by Björn Zeeb under sponsorship from 6 * the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1246 unchanged lines hidden (view full) --- 1255uint32_t linuxkpi_ieee80211_frequency_to_channel(uint32_t, uint32_t); 1256struct linuxkpi_ieee80211_channel * 1257 linuxkpi_ieee80211_get_channel(struct wiphy *, uint32_t); 1258struct cfg80211_bss *linuxkpi_cfg80211_get_bss(struct wiphy *, 1259 struct linuxkpi_ieee80211_channel *, const uint8_t *, 1260 const uint8_t *, size_t, enum ieee80211_bss_type, enum ieee80211_privacy); 1261void linuxkpi_cfg80211_put_bss(struct wiphy *, struct cfg80211_bss *); 1262void linuxkpi_cfg80211_bss_flush(struct wiphy *); |
1263struct linuxkpi_ieee80211_regdomain * 1264 lkpi_get_linuxkpi_ieee80211_regdomain(size_t); |
|
1263 1264/* -------------------------------------------------------------------------- */ 1265 1266static __inline struct wiphy * 1267wiphy_new(const struct cfg80211_ops *ops, size_t priv_len) 1268{ 1269 1270 return (linuxkpi_wiphy_new(ops, priv_len)); --- 311 unchanged lines hidden (view full) --- 1582 1583 /* XXX FIXME, do we have to do anything with reg_notifier? */ 1584 return (0); 1585} 1586 1587static __inline int 1588regulatory_hint(struct wiphy *wiphy, const uint8_t *alpha2) 1589{ | 1265 1266/* -------------------------------------------------------------------------- */ 1267 1268static __inline struct wiphy * 1269wiphy_new(const struct cfg80211_ops *ops, size_t priv_len) 1270{ 1271 1272 return (linuxkpi_wiphy_new(ops, priv_len)); --- 311 unchanged lines hidden (view full) --- 1584 1585 /* XXX FIXME, do we have to do anything with reg_notifier? */ 1586 return (0); 1587} 1588 1589static __inline int 1590regulatory_hint(struct wiphy *wiphy, const uint8_t *alpha2) 1591{ |
1590 TODO(); 1591 return (-ENXIO); | 1592 struct linuxkpi_ieee80211_regdomain *regd; 1593 1594 if (wiphy->regd != NULL) 1595 return (-EBUSY); 1596 1597 regd = lkpi_get_linuxkpi_ieee80211_regdomain(0); 1598 if (regd == NULL) 1599 return (-ENOMEM); 1600 1601 regd->alpha2[0] = alpha2[0]; 1602 regd->alpha2[1] = alpha2[1]; 1603 wiphy->regd = regd; 1604 1605 IMPROVE("are there flags who is managing? update net8011?"); 1606 1607 return (0); |
1592} 1593 1594static __inline const char * 1595reg_initiator_name(enum nl80211_reg_initiator initiator) 1596{ 1597 TODO(); 1598 return (NULL); 1599} --- 390 unchanged lines hidden --- | 1608} 1609 1610static __inline const char * 1611reg_initiator_name(enum nl80211_reg_initiator initiator) 1612{ 1613 TODO(); 1614 return (NULL); 1615} --- 390 unchanged lines hidden --- |