nl80211.c (5bbcc0f595fadb4cac0eddc4401035ec0bd95b09) | nl80211.c (0a833c29d89656025443cb9f0ebff7052dd95ce0) |
---|---|
1/* 2 * This is the new netlink-based wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 * Copyright 2013-2014 Intel Mobile Communications GmbH 6 * Copyright 2015-2017 Intel Deutschland GmbH 7 */ 8 --- 6277 unchanged lines hidden (view full) --- 6286 const struct ieee80211_regdomain *regdom) 6287{ 6288 void *hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, 6289 NL80211_CMD_GET_REG); 6290 6291 if (!hdr) 6292 return -1; 6293 | 1/* 2 * This is the new netlink-based wireless configuration interface. 3 * 4 * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> 5 * Copyright 2013-2014 Intel Mobile Communications GmbH 6 * Copyright 2015-2017 Intel Deutschland GmbH 7 */ 8 --- 6277 unchanged lines hidden (view full) --- 6286 const struct ieee80211_regdomain *regdom) 6287{ 6288 void *hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, 6289 NL80211_CMD_GET_REG); 6290 6291 if (!hdr) 6292 return -1; 6293 |
6294 genl_dump_check_consistent(cb, hdr, &nl80211_fam); | 6294 genl_dump_check_consistent(cb, hdr); |
6295 6296 if (nl80211_put_regdom(regdom, msg)) 6297 goto nla_put_failure; 6298 6299 if (!wiphy && reg_last_request_cell_base() && 6300 nla_put_u32(msg, NL80211_ATTR_USER_REG_HINT_TYPE, 6301 NL80211_USER_REG_HINT_CELL_BASE)) 6302 goto nla_put_failure; --- 1414 unchanged lines hidden (view full) --- 7717 7718 ASSERT_WDEV_LOCK(wdev); 7719 7720 hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, 7721 NL80211_CMD_NEW_SCAN_RESULTS); 7722 if (!hdr) 7723 return -1; 7724 | 6295 6296 if (nl80211_put_regdom(regdom, msg)) 6297 goto nla_put_failure; 6298 6299 if (!wiphy && reg_last_request_cell_base() && 6300 nla_put_u32(msg, NL80211_ATTR_USER_REG_HINT_TYPE, 6301 NL80211_USER_REG_HINT_CELL_BASE)) 6302 goto nla_put_failure; --- 1414 unchanged lines hidden (view full) --- 7717 7718 ASSERT_WDEV_LOCK(wdev); 7719 7720 hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, 7721 NL80211_CMD_NEW_SCAN_RESULTS); 7722 if (!hdr) 7723 return -1; 7724 |
7725 genl_dump_check_consistent(cb, hdr, &nl80211_fam); | 7725 genl_dump_check_consistent(cb, hdr); |
7726 7727 if (nla_put_u32(msg, NL80211_ATTR_GENERATION, rdev->bss_generation)) 7728 goto nla_put_failure; 7729 if (wdev->netdev && 7730 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex)) 7731 goto nla_put_failure; 7732 if (nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), 7733 NL80211_ATTR_PAD)) --- 7606 unchanged lines hidden --- | 7726 7727 if (nla_put_u32(msg, NL80211_ATTR_GENERATION, rdev->bss_generation)) 7728 goto nla_put_failure; 7729 if (wdev->netdev && 7730 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex)) 7731 goto nla_put_failure; 7732 if (nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), 7733 NL80211_ATTR_PAD)) --- 7606 unchanged lines hidden --- |