Lines Matching defs:hostcmd
4083 struct mwifiex_ds_misc_cmd *hostcmd;
4104 hostcmd = kzalloc(sizeof(*hostcmd), GFP_KERNEL);
4105 if (!hostcmd)
4108 hostcmd->len = nla_len(tb[MWIFIEX_TM_ATTR_DATA]);
4109 memcpy(hostcmd->cmd, nla_data(tb[MWIFIEX_TM_ATTR_DATA]),
4110 hostcmd->len);
4112 if (mwifiex_send_cmd(priv, 0, 0, 0, hostcmd, true)) {
4113 dev_err(priv->adapter->dev, "Failed to process hostcmd\n");
4114 kfree(hostcmd);
4118 /* process hostcmd response*/
4119 skb = cfg80211_testmode_alloc_reply_skb(wiphy, hostcmd->len);
4121 kfree(hostcmd);
4125 hostcmd->len, hostcmd->cmd);
4127 kfree(hostcmd);
4133 kfree(hostcmd);