STRUCT QLINK_CMD_SCAN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the kernel API manual, and today's main character is qlink_cmd_scan β€” literally the data for the QLINK_CMD_SCAN command. she's giving "scan request packet" energy and she ate πŸ’–


🌸 NAME 🌸

struct qlink_cmd_scan β€” the data for the QLINK_CMD_SCAN command. that's it, that's the vibe 🫢


✨ SYNOPSIS ✨

struct qlink_cmd_scan {
    struct qlink_cmd chdr;
    __le64 flags;
    __le16 n_ssids;
    __le16 n_channels;
    __le16 active_dwell;
    __le16 passive_dwell;
    __le16 sample_duration;
    u8 bssid[ETH_ALEN];
    u8 scan_width;
    u8 rsvd[3];
    u8 var_info[];
 };

no cap, that's the whole layout, copy it exactly or the vibe check fails 😭


πŸ¦‹ Members πŸ¦‹

okay so let's go member by member, bestie, because every single one matters πŸ‘‘

  • flags β€” the scan flags, and she's a bitmap of enum qlink_scan_flags. iykyk πŸ”₯
  • n_ssids β€” how many WLAN_EID_SSID TLVs we're expecting in the variable portion of the command. count 'em, don't guess πŸ’…
  • n_channels β€” how many QTN_TLV_ID_CHANNEL TLVs we're expecting in the variable payload. same energy, different TLV 🌈
  • active_dwell β€” the time spent on a single channel for an active scan. she dwells, she's thorough ✨
  • passive_dwell β€” the time spent on a single channel for a passive scan. same but silent, lowkey πŸ“
  • sample_duration β€” the total duration of sampling a single channel during a scan, and yes that includes the off-channel dwell time and the operating channel time. all of it, no crumbs left πŸŽ€
  • bssid β€” the specific BSSID to scan for, or a broadcast BSSID. be picky or be everyone's type πŸ’–
  • scan_width β€” the channel width to use, and it's one of enum qlink_channel_width. pick your width, icon πŸ‘‘

🌟 SEE ALSO 🌟

ngl this list is long and it's giving "linked universe", so buckle up bestie 🧚

Kernel file ./drivers/net/wireless/quantenna/qtnfmac/qlink.h enum qlink_msg_type(9), struct qlink_msg_header(9), enum qlink_hw_capab(9), enum qlink_driver_capab(9), struct qlink_intf_info(9), struct qlink_channel(9), struct qlink_chandef(9), struct qlink_sta_info_state(9), enum qlink_sr_ctrl_flags(9), struct qlink_sr_params(9), enum qlink_cmd_type(9), struct qlink_cmd(9), struct qlink_cmd_init_fw(9), struct qlink_cmd_manage_intf(9), struct qlink_cmd_mgmt_frame_register(9), struct qlink_cmd_frame_tx(9), struct qlink_cmd_get_sta_info(9), struct qlink_cmd_add_key(9), struct qlink_cmd_set_def_key(9), struct qlink_cmd_set_def_mgmt_key(9), struct qlink_cmd_change_sta(9), struct qlink_cmd_del_sta(9), struct qlink_cmd_connect(9), struct qlink_cmd_external_auth(9), struct qlink_cmd_disconnect(9), struct qlink_cmd_updown(9), enum qlink_band(9), struct qlink_cmd_band_info_get(9), struct qlink_cmd_get_chan_stats(9), enum qlink_reg_initiator(9), enum qlink_user_reg_hint_type(9), struct qlink_cmd_reg_notify(9), enum qlink_chan_sw_flags(9), struct qlink_cmd_chan_switch(9), enum qlink_hidden_ssid(9), struct qlink_cmd_start_ap(9), struct qlink_cmd_start_cac(9), struct qlink_acl_data(9), enum qlink_pm_mode(9), struct qlink_cmd_pm_set(9), enum qlink_txpwr_op(9), struct qlink_cmd_txpwr(9), enum qlink_wowlan_trigger(9), struct qlink_cmd_wowlan_set(9), struct qlink_cmd_ndev_event(9), struct qlink_cmd_ndev_changeupper(9), enum qlink_scan_flags(9), struct qlink_cmd_update_owe(9), struct qlink_resp(9), struct qlink_resp_init_fw(9), enum qlink_dfs_regions(9), struct qlink_resp_get_mac_info(9), struct qlink_resp_get_hw_info(9), struct qlink_resp_manage_intf(9), struct qlink_resp_get_sta_info(9), struct qlink_resp_band_info_get(9), struct qlink_resp_get_chan_stats(9), struct qlink_resp_channel_get(9), struct qlink_resp_txpwr(9), struct qlink_event(9), struct qlink_event_sta_assoc(9), struct qlink_event_sta_deauth(9), struct qlink_event_bss_join(9), struct qlink_event_bss_leave(9), struct qlink_event_freq_change(9), struct qlink_event_rxmgmt(9), struct qlink_event_scan_result(9), enum qlink_scan_complete_flags(9), struct qlink_event_scan_complete(9), struct qlink_event_radar(9), struct qlink_event_external_auth(9), struct qlink_event_mic_failure(9), struct qlink_event_update_owe(9), enum qlink_tlv_id(9), enum qlink_reg_rule_flags(9), struct qlink_tlv_reg_rule(9), struct qlink_tlv_channel(9), struct qlink_tlv_chandef(9), struct qlink_tlv_ie_set(9), struct qlink_tlv_ext_ie(9), struct qlink_tlv_iftype_data(9), enum qlink_chan_stat(9), struct qlink_chan_stats(9), enum qlink_sta_info(9), struct qlink_sta_info_rate(9), struct qlink_sta_stats(9), struct qlink_random_mac_addr(9), struct qlink_wowlan_capab_data(9), struct qlink_wowlan_support(9)


nerd alert πŸŽ€ the rsvd[3] and var_info[] members show up in the struct itself β€” the members rundown above covers the ones the page describes, so don't come for me, bestie πŸ™ˆ

and that's the whole page, periodt πŸ’œ this cutie came out of ./drivers/net/wireless/quanten... and she's dated October 2026 β€” so yes, she's from the future, main character energy fr fr β­πŸ‘‘πŸ’…

πŸ“¦ where this page comes from