Lines Matching defs:hostcmd
4037 struct mwifiex_ds_misc_cmd *hostcmd;
4058 hostcmd = kzalloc(sizeof(*hostcmd), GFP_KERNEL);
4059 if (!hostcmd)
4062 hostcmd->len = nla_len(tb[MWIFIEX_TM_ATTR_DATA]);
4063 memcpy(hostcmd->cmd, nla_data(tb[MWIFIEX_TM_ATTR_DATA]),
4064 hostcmd->len);
4066 if (mwifiex_send_cmd(priv, 0, 0, 0, hostcmd, true)) {
4067 dev_err(priv->adapter->dev, "Failed to process hostcmd\n");
4068 kfree(hostcmd);
4072 /* process hostcmd response*/
4073 skb = cfg80211_testmode_alloc_reply_skb(wiphy, hostcmd->len);
4075 kfree(hostcmd);
4079 hostcmd->len, hostcmd->cmd);
4081 kfree(hostcmd);
4087 kfree(hostcmd);