Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | net/wireless/nl80211.c | static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
int ret;
cfg80211_destroy_ifaces(rdev);
wiphy_lock(&rdev->wiphy);
ret = _nl80211_new_interface(skb, info);
wiphy_unlock(&rdev->wiphy);
return ret;
} | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_del_interface(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
if (!rdev->ops->del_virtual_intf)
return -EOPNOTSUPP;
mutex_unlock(&rdev->wiphy.mtx);
/*
* If we remove a wirele... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_set_noack_map(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
u16 noack_map;
if (!info->attrs[NL80211_ATTR_NOACK_MAP])
return -EINVAL;
if (!rdev->ops->set_noack_map)
return -EO... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_validate_key_link_id(struct genl_info *info,
struct wireless_dev *wdev, int link_id,
bool pairwise) {
if (pairwise) {
if (link_id != -1) {
GENL_SET_ERR_MSG(info, "link ID not allowed for pairwise key");
... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_del_key(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
int err;
struct net_device *dev = info->user_ptr[1];
u8 *mac_addr = NULL;
struct key_parse key;
int link_id = nl80211_link_id_or_invalid(info->attrs);
struct wireless_dev ... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_get_station(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct station_info sinfo;
struct sk_buff *msg;
u8 *mac_addr = NULL;
int err;
memset(&sinfo, 0, sizeof(sinfo));
if (!i... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static struct net_device *get_vlan(struct genl_info *info,
struct cfg80211_registered_device *rdev) {
struct nlattr *vlanattr = info->attrs[NL80211_ATTR_STA_VLAN];
struct net_device *v;
int ret;
if (!vlanattr)
return NULL;
v = dev_get_by_index(genl_info_net(info), nla_... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_set_station_tdls(struct genl_info *info,
struct station_parameters *params) {
int err;
if (info->attrs[NL80211_ATTR_PEER_AID])
params->aid = nla_get_u16(info->attrs[NL80211_ATTR_PEER_AID]);
if (info->attrs[NL80211_ATTR_HT_CAPABILITY])
params->link_st... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_parse_sta_txpower_setting(struct genl_info *info,
struct sta_txpwr *txpwr,
bool *txpwr_set) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
int idx;
if (info->attrs[NL80211_ATTR_STA_TX_POW... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct station_del_parameters params;
int ret;
memset(¶ms, 0, sizeof(params));
if (info->attrs[NL80211_ATTR_MAC])
p... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_new_mpath(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
u8 *dst = NULL;
u8 *next_hop = NULL;
if (!info->attrs[NL80211_ATTR_MAC])
return -EINVAL;
if (!info->attrs[NL80211_ATTR_M... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_update_mesh_config(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct mesh_config cfg;
u32 mask;... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int validate_scan_freqs(struct nlattr *freqs) {
struct nlattr *attr1, *attr2;
int n_channels = 0, tmp1, tmp2;
nla_for_each_nested(attr1, freqs,
tmp1) if (nla_len(attr1) != sizeof(u32)) return 0;
nla_for_each_nested(attr1, freqs, tmp1) {
n_channels++;
nla_for_each_nested(a... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static bool cfg80211_off_channel_oper_allowed(struct wireless_dev *wdev,
struct ieee80211_channel *chan) {
unsigned int link_id;
bool all_ok = true;
ASSERT_WDEV_LOCK(wdev);
if (!cfg80211_beaconing_iface_active(wdev))
return true;
/* we cannot leave radar ch... | [
1,
1
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_start_sched_scan(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct cfg80211_sched_scan_request *sche... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_stop_sched_scan(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_sched_scan_request *req;
struct cfg80211_registered_device *rdev = info->user_ptr[0];
u64 cookie;
if (!rdev->wiphy.max_sched_scan_reqs || !rdev->ops->sched_scan_stop)
return... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_dump_survey(struct sk_buff *skb,
struct netlink_callback *cb) {
struct nlattr **attrbuf;
struct survey_info survey;
struct cfg80211_registered_device *rdev;
struct wireless_dev *wdev;
int survey_idx = cb->args[2];
int res;
bool radio_stats;
attrbuf = kc... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_disassociate(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
const u8 *ie = NULL, *bssid;
int ie_len = 0, err;
u16 reason_code;
bool local_state_change;
if (dev->ieee80211_ptr->conn_... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_set_mcast_rate(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
int mcast_rate[NUM_NL80211_BANDS];
u32 nla_rate;
if (dev->ieee80211_ptr->iftype != NL80211_IFTYPE_ADHOC &&
dev->ieee... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_testmode_do(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev;
int err;
lockdep_assert_held(&rdev->wiphy.mtx);
wdev = __cfg80211_wdev_from_attrs(rdev, genl_info_net(info), info->attrs);
if (!rdev->ops->... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_disconnect(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
u16 reason;
int ret;
if (dev->ieee80211_ptr->conn_owner_nlportid &&
dev->ieee80211_ptr->conn_owner_nlportid != info->snd... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_tdls_mgmt(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
u8 action_code, dialog_token;
u32 peer_capability = 0;
u16 status_code;
u8 *peer;
bool initiator;
if (!(rdev->wiphy.flags... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_register_mgmt(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
u16 frame_type = IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION;
if (!info->attrs[NL80211_ATTR_FRAME_MATCH])
return -EIN... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_set_power_save(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev;
struct net_device *dev = info->user_ptr[1];
u8 ps_state;
bool state;
int err;
if (!info->attrs[NL80211_ATTR_PS_STATE])
return -EINV... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_set_cqm(struct sk_buff *skb, struct genl_info *info) {
struct nlattr *attrs[NL80211_ATTR_CQM_MAX + 1];
struct nlattr *cqm;
int err;
cqm = info->attrs[NL80211_ATTR_CQM];
if (!cqm)
return -EINVAL;
err = nla_parse_nested_deprecated(attrs, NL80211_ATTR_CQM_MAX, cqm,
... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_leave_ocb(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
return cfg80211_leave_ocb(rdev, dev);
} | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_parse_wowlan_nd(struct cfg80211_registered_device *rdev,
const struct wiphy_wowlan_support *wowlan,
struct nlattr *attr,
struct cfg80211_wowlan *trig) {
struct nlattr **tb;
int err;
tb = k... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_rdev_free_coalesce(struct cfg80211_registered_device *rdev) {
struct cfg80211_coalesce *coalesce = rdev->coalesce;
int i, j;
struct cfg80211_coalesce_rules *rule;
if (!coalesce)
return;
for (i = 0; i < coalesce->n_rules; i++) {
rule = &coalesce->rules[i];
for (j = 0; j < rule->n_p... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_stop_nan(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
if (wdev->iftype != NL80211_IFTYPE_NAN)
return -EOPNOTSUPP;
cfg80211_stop_nan(rdev, wdev);
return 0;
} | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_nan_del_func(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
u64 cookie;
if (wdev->iftype != NL80211_IFTYPE_NAN)
return -EOPNOTSUPP;
if (!wdev_running(wdev))
return -ENOTCON... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_crit_protocol_start(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
enum nl80211_crit_proto_id proto = NL80211_CRIT_PROTO_UNSPEC;
u16 duration;
i... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_crit_protocol_stop(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct wireless_dev *wdev = info->user_ptr[1];
if (!rdev->ops->crit_proto_stop)
return -EOPNOTSUPP;
if (rdev->crit_proto_... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_add_tx_ts(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
const u8 *peer;
u8 tsid, up;
u16 admitted_time = 0;
int err;
if (!(rdev->w... | [
0,
1
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_tdls_cancel_channel_switch(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
const u8 *addr;
... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_del_pmk(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
const u8 *aa;
int ret;
if (wdev->iftype != NL80211_IFTYPE_STATION &&
wdev... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_probe_mesh_link(struct sk_buff *skb,
struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct station_info sinfo = {};
const u... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_set_tid_config(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
struct nlattr *attrs[NL80211_TID_CONFIG_ATTR_MAX + 1];
unsigned int link_id = nl80211_link_id(info->attrs);
struct net_device *dev = info->user_ptr[1];
struct cfg80211... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int nl80211_add_link(struct sk_buff *skb, struct genl_info *info) {
struct cfg80211_registered_device *rdev = info->user_ptr[0];
unsigned int link_id = nl80211_link_id(info->attrs);
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
int ret;
if (!(wdev->wiph... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_remove_link(struct sk_buff *skb, struct genl_info *info) {
unsigned int link_id = nl80211_link_id(info->attrs);
struct net_device *dev = info->user_ptr[1];
struct wireless_dev *wdev = dev->ieee80211_ptr;
if (!info->attrs[NL80211_ATTR_MLO_LINK_ID])
return -EINVAL;
switch (wdev->iftype)... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static void nl80211_post_doit(const struct genl_split_ops *ops,
struct sk_buff *skb, struct genl_info *info) {
u32 internal_flags = nl80211_internal_flags[ops->internal_flags];
if (info->user_ptr[1]) {
if (internal_flags & NL80211_FLAG_NEED_WDEV) {
struct wireless_dev *wdev ... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c | static int nl80211_set_sar_sub_specs(struct cfg80211_registered_device *rdev,
struct cfg80211_sar_specs *sar_specs,
struct nlattr *spec[], int index) {
u32 range_index, i;
if (!sar_specs || !spec)
return -EINVAL;
if (!spec[NL80211_SAR... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
struct sk_buff *nl80211_build_scan_msg(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
bool aborted) {
struct sk_buff *msg;
msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
if (!msg)
return NULL;
if (nl80211... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void nl80211_send_disassoc(struct cfg80211_registered_device *rdev,
struct net_device *netdev, const u8 *buf, size_t len,
bool reconnect, gfp_t gfp) {
nl80211_send_mlme_event(rdev, netdev, buf, len, NL80211_CMD_DISASSOCIATE, gfp,
-1, NUL... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_rx_unprot_mlme_mgmt(struct net_device *dev, const u8 *buf,
size_t len) {
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct wiphy *wiphy = wdev->wiphy;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
const struct ieee80211_mgmt *mgmt = (void *... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void nl80211_send_assoc_timeout(struct cfg80211_registered_device *rdev,
struct net_device *netdev, const u8 *addr,
gfp_t gfp) {
nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_ASSOCIATE, addr, gfp);
} | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_notify_new_peer_candidate(struct net_device *dev, const u8 *addr,
const u8 *ie, u8 ie_len, int sig_dbm,
gfp_t gfp) {
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_control_port_tx_status(struct wireless_dev *wdev, u64 cookie,
const u8 *buf, size_t len, bool ack,
gfp_t gfp) {
struct cfg80211_tx_status status = {
.cookie = cookie, .buf = buf, .len = len, .ack = ack};
nl80211_frame_tx... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_mgmt_tx_status_ext(struct wireless_dev *wdev,
struct cfg80211_tx_status *status, gfp_t gfp) {
nl80211_frame_tx_status(wdev, status, gfp, NL80211_CMD_FRAME_TX_STATUS);
} | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static int __nl80211_rx_control_port(struct net_device *dev,
struct sk_buff *skb, bool unencrypted,
gfp_t gfp) {
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy);
struct e... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
bool cfg80211_rx_control_port(struct net_device *dev, struct sk_buff *skb,
bool unencrypted) {
int ret;
trace_cfg80211_rx_control_port(dev, skb, unencrypted);
ret = __nl80211_rx_control_port(dev, skb, unencrypted, GFP_ATOMIC);
trace_cfg80211_return_bool(ret == 0);
return ret ==... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
static void nl80211_gtk_rekey_notify(struct cfg80211_registered_device *rdev,
struct net_device *netdev, const u8 *bssid,
const u8 *replay_ctr, gfp_t gfp) {
struct sk_buff *msg;
struct nlattr *rekey_attr;
void *hdr;
msg = nlmsg_new(NLMS... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_pmksa_candidate_notify(struct net_device *dev, int index,
const u8 *bssid, bool preauth, gfp_t gfp) {
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct wiphy *wiphy = wdev->wiphy;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
trace_cfg8... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
int cfg80211_bss_color_notify(struct net_device *dev, gfp_t gfp,
enum nl80211_commands cmd, u8 count,
u64 color_bitmap) {
struct wireless_dev *wdev = dev->ieee80211_ptr;
struct wiphy *wiphy = wdev->wiphy;
struct cfg80211_registered_device *rdev = wiphy_... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c | void nl80211_radar_notify(struct cfg80211_registered_device *rdev,
const struct cfg80211_chan_def *chandef,
enum nl80211_radar_event event,
struct net_device *netdev, gfp_t gfp) {
struct sk_buff *msg;
void *hdr;
msg = nlmsg_new(NLMSG_D... | [
0,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_ft_event(struct net_device *netdev,
struct cfg80211_ft_event_params *ft_event) {
struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
struct sk_buff *msg;
void *hdr;
trace_cfg80211_ft_event(wiphy, netdev, ft_... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void cfg80211_update_owe_info_event(struct net_device *netdev,
struct cfg80211_update_owe_info *owe_info,
gfp_t gfp) {
struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);
struct... | [
1,
0
] |
Linux Kernel | net/wireless/nl80211.c |
void nl80211_exit(void) {
netlink_unregister_notifier(&nl80211_netlink_notifier);
genl_unregister_family(&nl80211_fam);
} | [
0,
0
] |
Linux Kernel | net/wireless/pmsr.c |
static void cfg80211_pmsr_process_abort(struct wireless_dev *wdev) {
struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy);
struct cfg80211_pmsr_request *req, *tmp;
LIST_HEAD(free_list);
lockdep_assert_held(&wdev->mtx);
spin_lock_bh(&wdev->pmsr_lock);
list_for_each_entry_safe(req, tmp, &wd... | [
0,
0
] |
Linux Kernel | net/wireless/pmsr.c |
void cfg80211_pmsr_free_wk(struct work_struct *work) {
struct wireless_dev *wdev =
container_of(work, struct wireless_dev, pmsr_free_wk);
wdev_lock(wdev);
cfg80211_pmsr_process_abort(wdev);
wdev_unlock(wdev);
} | [
0,
0
] |
Linux Kernel | net/wireless/pmsr.c |
void cfg80211_pmsr_wdev_down(struct wireless_dev *wdev) {
struct cfg80211_pmsr_request *req;
bool found = false;
spin_lock_bh(&wdev->pmsr_lock);
list_for_each_entry(req, &wdev->pmsr_list, list) {
found = true;
req->nl_portid = 0;
}
spin_unlock_bh(&wdev->pmsr_lock);
if (found)
cfg80211_pmsr_... | [
0,
0
] |
Linux Kernel | net/wireless/pmsr.c |
void cfg80211_release_pmsr(struct wireless_dev *wdev, u32 portid) {
struct cfg80211_pmsr_request *req;
spin_lock_bh(&wdev->pmsr_lock);
list_for_each_entry(req, &wdev->pmsr_list, list) {
if (req->nl_portid == portid) {
req->nl_portid = 0;
schedule_work(&wdev->pmsr_free_wk);
}
}
spin_unloc... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_change_virtual_intf(struct cfg80211_registered_device *rdev,
struct net_device *dev, enum nl80211_iftype type,
struct vif_params *params) {
int ret;
trace_rdev_change_virtual_intf(&rdev->wiphy, dev, type);
ret = rdev->ops->change_virtual_in... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_set_default_key(struct cfg80211_registered_device *rdev,
struct net_device *netdev, int link_id,
u8 key_index, bool unicast,
bool multicast) {
int ret;
trace_rdev_set_default_... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_change_beacon(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_beacon_data *info) {
int ret;
trace_rdev_change_beacon(&rdev->wiphy, dev, info);
ret = rdev->ops->change_beacon(&rdev->wi... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_stop_ap(struct cfg80211_registered_device *rdev,
struct net_device *dev, unsigned int link_id) {
int ret;
trace_rdev_stop_ap(&rdev->wiphy, dev, link_id);
ret = rdev->ops->stop_ap(&rdev->wiphy, dev, link_id);
trace_rdev_return_int(&rdev->wiphy, ret);
retur... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_add_mpath(struct cfg80211_registered_device *rdev,
struct net_device *dev, u8 *dst,
u8 *next_hop) {
int ret;
trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop);
ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_change_mpath(struct cfg80211_registered_device *rdev,
struct net_device *dev, u8 *dst,
u8 *next_hop) {
int ret;
trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop);
ret = rdev->ops->change_mpath(&rdev->wiphy, dev... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_dump_mpath(struct cfg80211_registered_device *rdev,
struct net_device *dev, int idx, u8 *dst,
u8 *next_hop, struct mpath_info *pinfo)
{
int ret;
trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop);
ret = rdev->op... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_leave_mesh(struct cfg80211_registered_device *rdev,
struct net_device *dev) {
int ret;
trace_rdev_leave_mesh(&rdev->wiphy, dev);
ret = rdev->ops->leave_mesh(&rdev->wiphy, dev);
trace_rdev_return_int(&rdev->wiphy, ret);
return ret;
} | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_change_bss(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct bss_parameters *params)
{
int ret;
trace_rdev_change_bss(&rdev->wiphy, dev, params);
ret = rdev->ops->change_bss(&rdev->wiphy, dev, params... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_set_txq_params(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct ieee80211_txq_params *params)
{
int ret;
trace_rdev_set_txq_params(&rdev->wiphy, dev, params);
ret = rdev->ops->set_txq_params... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_deauth(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_deauth_request *req) {
int ret;
trace_rdev_deauth(&rdev->wiphy, dev, req);
ret = rdev->ops->deauth(&rdev->wiphy, dev, req);
trace_rdev_retur... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_connect(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_connect_params *sme) {
int ret;
trace_rdev_connect(&rdev->wiphy, dev, sme);
ret = rdev->ops->connect(&rdev->wiphy, dev, sme);
trace_rdev_... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_update_connect_params(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_connect_params *sme, u32 changed) {
int ret;
trace_rdev_update_connect_params(&rdev->wiphy, dev, sme, changed);
ret = rdev->ops->upda... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_set_tx_power(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
enum nl80211_tx_power_setting type,
int mbm) {
int ret;
trace_rdev_set_tx_power(&rdev->wiphy, wdev, typ... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_mgmt_tx(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
struct cfg80211_mgmt_tx_params *params,
u64 *cookie) {
int ret;
trace_rdev_mgmt_tx(&rdev->wiphy, wdev, params);
ret = rde... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_tx_control_port(struct cfg80211_registered_device *rdev,
struct net_device *dev, const void *buf,
size_t len, const u8 *dest, __be16 proto,
const bool noencrypt, int link,
... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_mgmt_tx_cancel_wait(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev, u64 cookie) {
int ret;
trace_rdev_mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie);
ret = rdev->ops->mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie);
trace_rdev_return_int(&rde... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_set_cqm_rssi_config(struct cfg80211_registered_device *rdev,
struct net_device *dev, s32 rssi_thold,
u32 rssi_hyst) {
int ret;
trace_rdev_set_cqm_rssi_config(&rdev->wiphy, dev, rssi_thold, rssi_hyst);
ret =
rdev->ops->set_cqm_rssi_con... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_sched_scan_start(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_sched_scan_request *request) {
int ret;
trace_rdev_sched_scan_start(&rdev->wiphy, dev, request->reqid);
ret = rdev->ops->sched_scan_start(&rdev->wip... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_tdls_oper(struct cfg80211_registered_device *rdev,
struct net_device *dev, u8 *peer,
enum nl80211_tdls_operation oper) {
int ret;
trace_rdev_tdls_oper(&rdev->wiphy, dev, peer, oper);
ret = rdev->ops->tdls_oper(&rdev->wiphy, ... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_start_nan(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
struct cfg80211_nan_conf *conf) {
int ret;
trace_rdev_start_nan(&rdev->wiphy, wdev, conf);
ret = rdev->ops->start_nan(&rdev->wiphy, wdev, conf);
... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline void rdev_del_nan_func(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev, u64 cookie) {
trace_rdev_del_nan_func(&rdev->wiphy, wdev, cookie);
rdev->ops->del_nan_func(&rdev->wiphy, wdev, cookie);
trace_rdev_return_void(&rdev->wiphy);
} | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_nan_change_conf(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
struct cfg80211_nan_conf *conf,
u32 changes) {
int ret;
trace_rdev_nan_change_conf(&rdev->... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_crit_proto_start(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
enum nl80211_crit_proto_id protocol,
u16 duration) {
int ret;
trace_rdev_crit_proto_st... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_add_tx_ts(struct cfg80211_registered_device *rdev,
struct net_device *dev, u8 tsid,
const u8 *peer, u8 user_prio,
u16 admitted_time) {
int ret = -EOPNOTSUPP;
trace_rdev_add_tx_ts(&rdev->wiphy,... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_del_tx_ts(struct cfg80211_registered_device *rdev,
struct net_device *dev, u8 tsid,
const u8 *peer) {
int ret = -EOPNOTSUPP;
trace_rdev_del_tx_ts(&rdev->wiphy, dev, tsid, peer);
if (rdev->ops->del_tx_ts)
ret = rdev->ops... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_get_ftm_responder_stats(struct cfg80211_registered_device *rdev,
struct net_device *dev,
struct cfg80211_ftm_responder_stats *ftm_stats) {
int ret = -EOPNOTSUPP;
trace_rdev_get_ftm_responder_stats(&rdev->wiphy, dev, ftm_stats);
if ... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline void rdev_abort_pmsr(struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
struct cfg80211_pmsr_request *request) {
trace_rdev_abort_pmsr(&rdev->wiphy, wdev, request->cookie);
if (rdev->ops->abort_pmsr)
rdev->ops-... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int rdev_reset_tid_config(struct cfg80211_registered_device *rdev,
struct net_device *dev, const u8 *peer,
u8 tids) {
int ret;
trace_rdev_reset_tid_config(&rdev->wiphy, dev, peer, tids);
ret = rdev->ops->reset_tid_conf... | [
0,
0
] |
Linux Kernel | net/wireless/rdev-ops.h |
static inline int
rdev_set_radar_background(struct cfg80211_registered_device *rdev,
struct cfg80211_chan_def *chandef) {
struct wiphy *wiphy = &rdev->wiphy;
int ret;
if (!rdev->ops->set_radar_background)
return -EOPNOTSUPP;
trace_rdev_set_radar_background(wiphy, chandef);
ret... | [
1,
0
] |
Linux Kernel | net/wireless/reg.c |
static void rcu_free_regdom(const struct ieee80211_regdomain *r) {
if (!r)
return;
kfree_rcu((struct ieee80211_regdomain *)r, rcu_head);
} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c |
static struct regulatory_request *get_last_request(void) {
return rcu_dereference_rtnl(last_request);
} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c |
static void reg_free_request(struct regulatory_request *request) {
if (request == &core_request_world)
return;
if (request != get_last_request())
kfree(request);
} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c | static void update_world_regdomain(const struct ieee80211_regdomain *rd) {
struct regulatory_request *lr;
lr = get_last_request();
WARN_ON(!lr);
reset_regdomains(false, rd);
cfg80211_world_regdom = rd;
} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c |
bool is_world_regdom(const char *alpha2) {
if (!alpha2)
return false;
return alpha2[0] == '0' && alpha2[1] == '0';
} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c |
static void cancel_crda_timeout(void) { cancel_delayed_work(&crda_timeout); } | [
0,
0
] |
Linux Kernel | net/wireless/reg.c | static inline void cancel_crda_timeout(void) {} | [
0,
0
] |
Linux Kernel | net/wireless/reg.c |
static bool valid_wmm(struct fwdb_wmm_rule *rule) {
struct fwdb_wmm_ac *ac = (struct fwdb_wmm_ac *)rule;
int i;
for (i = 0; i < IEEE80211_NUM_ACS * 2; i++) {
u16 cw_min = ecw2cw((ac[i].ecw & 0xf0) >> 4);
u16 cw_max = ecw2cw(ac[i].ecw & 0x0f);
u8 aifsn = ac[i].aifsn;
if (cw_min >= cw_max)
... | [
1,
0
] |
Linux Kernel | net/wireless/reg.c | static bool valid_rule(const u8 *data, unsigned int size, u16 rule_ptr) {
struct fwdb_rule *rule = (void *)(data + (rule_ptr << 2));
if ((u8 *)rule + sizeof(rule->len) > data + size)
return false;
if (rule->len < offsetofend(struct fwdb_rule, max_bw))
return false;
if (rule->len >= offsetofend(struct ... | [
1,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.