STRUCT QLINK_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the Kernel API Manual, and today's main character is struct qlink_cmd β€” the QLINK command message header. yes, THE header. the one that carries the vibes for every QLINK_MSG_TYPE_CMD message. let's get into it ✨


🌸 NAME 🌸

struct qlink_cmd β€” the QLINK command message header, aka the little envelope every command rides in πŸŽ€


⭐ SYNOPSIS ⭐

struct qlink_cmd {
    struct qlink_msg_header mhdr;
    __le16 cmd_id;
    __le16 seq_num;
    u8 macid;
    u8 vifid;
    u8 rsvd[2];
 };

look at her. flawless. no notes. πŸ’…


πŸ¦‹ Members πŸ¦‹

  • mhdr β€” the common QLINK message header. every command's got one, it's the shared foundation, the group-chat invite everyone gets 🫢
  • cmd_id β€” the command id, and it's literally one of enum qlink_cmd_type. it's giving "which command is this, bestie" energy.
  • seq_num β€” the sequence number of the command message. this one's the socially-aware friend: it's used for matching the command with its response message. no cap, that's her whole job πŸ”₯
  • macid β€” the index of the physical radio device this command is destined to... or QLINK_MACID_RSVD if it's not applicable. so if it doesn't apply, you just slide in the reserved value, we don't force it to have a macid, that would be mean πŸ’€
  • vifid β€” the index of the virtual wireless interface on the specified macid that the command is destined to, or QLINK_VIFID_RSVD if not applicable. same deal β€” if there's no interface in the picture, reserved value, done, moving on ✨
  • rsvd[2] β€” reserved bytes. two of them. they're just chillin'. do not touch. they're the quiet ones in the group chat πŸ™ˆ

πŸ’œ Description πŸ’œ

so basically: this is the header used for QLINK messages of QLINK_MSG_TYPE_CMD type. that's it, that's the whole vibe. she's a header, she carries her fields, she shows up in command messages, she slays. periodt πŸ‘‘


🌈 SEE ALSO 🌈

buckle up bestie, this list is LONG and honestly iconic for it 😭 every single one of these, no skips:

  • 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_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_scan(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)

like I said. LONG. but we respect her for it πŸ’–


not me reading this whole list out loud. anyway, iykyk 🧚

and that's the page bestie!! sourced from ./drivers/net/wireless/quanten... (the truncation is literally how it shows up in the footer, don't come for me 😭), dated October 2026, and it's the struct qlink_cmd(9) page from the Kernel API Manual. mwah. go forth and read your headers πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from