Defined in 1 files as a function:
Referenced in 5 files:
- net/wireless/chan.c, line 946
- net/wireless/nl80211.c
- net/wireless/reg.c, line 2398
- net/wireless/trace.h, line 2300
- net/wireless/wext-compat.c, line 833
Smatch caller information:
net/wireless/chan.c cfg80211_dfs_permissive_check_wdev() -> rdev_get_channel()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->iftype | 2 |
| PARAM_VALUE | 1 | wdev->links | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-s64max |
| PARAM_VALUE | 2 | link_id | 0-14 |
| PARAM_VALUE | 3 | chandef | 333131878984044544 |
| PARAM_VALUE | 3 | chandef->center_freq1 | 0 |
| PARAM_VALUE | 3 | chandef->center_freq2 | 0 |
| PARAM_VALUE | 3 | chandef->chan | 0 |
| PARAM_VALUE | 3 | chandef->edmg.bw_config | 0 |
| PARAM_VALUE | 3 | chandef->edmg.channels | 0 |
| PARAM_VALUE | 3 | chandef->freq1_offset | 0 |
| PARAM_VALUE | 3 | chandef->npca_chan | 0 |
| PARAM_VALUE | 3 | chandef->npca_punctured | 0 |
| PARAM_VALUE | 3 | chandef->punctured | 0 |
| PARAM_VALUE | 3 | chandef->s1g_primary_2mhz | 0 |
| PARAM_VALUE | 3 | chandef->width | 0 |
| CAPPED_DATA | 2 | link_id | 1 |
| DATA_SOURCE | 0 | rdev | $0 |
| DATA_SOURCE | 1 | wdev | $2 |
| FUZZY_MAX | 2 | link_id | 14 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &wiphy->mtx |
net/wireless/nl80211.c nl80211_send_iface() -> rdev_get_channel()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops->get_channel | 1-u64max |
| PARAM_VALUE | 0 | *rdev->scan_req->req.wdev->netdev->name | 0-255 |
| PARAM_VALUE | 1 | wdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev->name | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | wdev->valid_links | 0 |
| PARAM_VALUE | 1 | wdev->wiphy | 1-u64max |
| PARAM_VALUE | 2 | link_id | 0 |
| PARAM_VALUE | 3 | chandef | 5337544947479535616 |
| PARAM_VALUE | 3 | chandef->center_freq1 | 0 |
| PARAM_VALUE | 3 | chandef->center_freq2 | 0 |
| PARAM_VALUE | 3 | chandef->chan | 0 |
| PARAM_VALUE | 3 | chandef->edmg.bw_config | 0 |
| PARAM_VALUE | 3 | chandef->edmg.channels | 0 |
| PARAM_VALUE | 3 | chandef->freq1_offset | 0 |
| PARAM_VALUE | 3 | chandef->npca_chan | 0 |
| PARAM_VALUE | 3 | chandef->npca_punctured | 0 |
| PARAM_VALUE | 3 | chandef->punctured | 0 |
| PARAM_VALUE | 3 | chandef->s1g_primary_2mhz | 0 |
| PARAM_VALUE | 3 | chandef->width | 0 |
| BUF_SIZE | 0 | rdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | wdev | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | wdev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | rdev | $4 |
| DATA_SOURCE | 1 | wdev | $5 |
| STR_LEN | 1 | wdev->wiphy | (-1),5-6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_otp_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_patch_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->priv.wdev.wiphy->n_radio | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->u.nan.n_channels | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.wiphy->n_radio | |
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | 0 | &rdev->wiphy.mtx |
net/wireless/nl80211.c nl80211_send_iface() -> rdev_get_channel()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops->get_txq_stats | 0,4096-ptr_max |
| PARAM_VALUE | 0 | *rdev->scan_req->req.wdev->netdev->name | 0-255 |
| PARAM_VALUE | 1 | wdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->links | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev | 0,4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev->name | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | wdev->valid_links | 1-u16max |
| PARAM_VALUE | 1 | wdev->wiphy | 1-u64max |
| PARAM_VALUE | 2 | link_id | 0-14 |
| PARAM_VALUE | 3 | chandef | 5337544947479535616 |
| PARAM_VALUE | 3 | chandef->center_freq1 | 0 |
| PARAM_VALUE | 3 | chandef->center_freq2 | 0 |
| PARAM_VALUE | 3 | chandef->chan | 0 |
| PARAM_VALUE | 3 | chandef->edmg.bw_config | 0 |
| PARAM_VALUE | 3 | chandef->edmg.channels | 0 |
| PARAM_VALUE | 3 | chandef->freq1_offset | 0 |
| PARAM_VALUE | 3 | chandef->npca_chan | 0 |
| PARAM_VALUE | 3 | chandef->npca_punctured | 0 |
| PARAM_VALUE | 3 | chandef->punctured | 0 |
| PARAM_VALUE | 3 | chandef->s1g_primary_2mhz | 0 |
| PARAM_VALUE | 3 | chandef->width | 0 |
| BUF_SIZE | 0 | rdev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | rdev | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | wdev | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | wdev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | rdev | $4 |
| DATA_SOURCE | 1 | wdev | $5 |
| FUZZY_MAX | 2 | link_id | 14 |
| STR_LEN | 1 | wdev->wiphy | (-1),5-6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_otp_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ar->fw_patch_len | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->ndev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->netdev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->priv.wdev.wiphy->n_radio | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->u.nan.n_channels | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_napi_configs | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->real_num_rx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.netdev->real_num_tx_queues | |
| NO_OVERFLOW_SIMPLE | 1 | wdev->wdev.wiphy->n_radio | |
| HALF_LOCKED2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | 0 | &rdev->wiphy.mtx |
net/wireless/reg.c reg_wdev_chan_valid() -> rdev_get_channel()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops->get_channel | 1-u64max |
| PARAM_VALUE | 1 | wdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->iftype | 0-11,13-u32max |
| PARAM_VALUE | 1 | wdev->links | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->netdev | 4096-ptr_max |
| PARAM_VALUE | 2 | link_id | 0-14 |
| PARAM_VALUE | 3 | chandef | 5141701165918347264 |
| PARAM_VALUE | 3 | chandef->chan | 0,4096-ptr_max |
| PARAM_VALUE | 3 | chandef->edmg.bw_config | 0,4-15 |
| PARAM_VALUE | 3 | chandef->freq1_offset | 0-999 |
| PARAM_VALUE | 3 | chandef->width | 0-5,8-13 |
| DATA_SOURCE | 0 | rdev | r wiphy_to_rdev |
| DATA_SOURCE | 1 | wdev | $1 |
| UNITS | 2 | link_id | unit_array_size |
| LOCK2 | &wiphy->mtx | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct wiphy)->mtx |
net/wireless/wext-compat.c cfg80211_wext_giwfreq() -> rdev_get_channel()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rdev | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | rdev->ops->get_channel | 1-u64max |
| PARAM_VALUE | 0 | rdev->wiphy.mtx.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | rdev->wiphy.mtx.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | rdev->wiphy.mtx.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | rdev->wiphy.mtx.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | wdev | 4096-ptr_max |
| PARAM_VALUE | 1 | wdev->iftype | 6 |
| PARAM_VALUE | 1 | wdev->wiphy | 1-u64max |
| PARAM_VALUE | 2 | link_id | 0 |
| PARAM_VALUE | 3 | chandef | 5369208643921739776 |
| PARAM_VALUE | 3 | chandef->center_freq1 | 0 |
| PARAM_VALUE | 3 | chandef->center_freq2 | 0 |
| PARAM_VALUE | 3 | chandef->chan | 0 |
| PARAM_VALUE | 3 | chandef->edmg.bw_config | 0 |
| PARAM_VALUE | 3 | chandef->edmg.channels | 0 |
| PARAM_VALUE | 3 | chandef->freq1_offset | 0 |
| PARAM_VALUE | 3 | chandef->npca_chan | 0 |
| PARAM_VALUE | 3 | chandef->npca_punctured | 0 |
| PARAM_VALUE | 3 | chandef->punctured | 0 |
| PARAM_VALUE | 3 | chandef->s1g_primary_2mhz | 0 |
| PARAM_VALUE | 3 | chandef->width | 0 |
| DATA_SOURCE | 0 | rdev | r wiphy_to_rdev |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &rdev->wiphy.mtx | |
| TYPE_LOCK | (struct wiphy)->mtx |