cmd.c (750e9d15e2fe93fec696893be7b120b2940378d0) | cmd.c (e7d323243f567b8f3ff1324dc8a6f17dd36b4106) |
---|---|
1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 184 unchanged lines hidden (view full) --- 193 wl1271_error("failed to send cac command"); 194 goto out_free; 195 } 196 197out_free: 198 kfree(cmd); 199 return ret; 200} | 1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 184 unchanged lines hidden (view full) --- 193 wl1271_error("failed to send cac command"); 194 goto out_free; 195 } 196 197out_free: 198 kfree(cmd); 199 return ret; 200} |
201 202int wl18xx_cmd_radar_detection_debug(struct wl1271 *wl, u8 channel) 203{ 204 struct wl18xx_cmd_dfs_radar_debug *cmd; 205 int ret = 0; 206 207 wl1271_debug(DEBUG_CMD, "cmd radar detection debug (chan %d)", 208 channel); 209 210 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); 211 if (!cmd) 212 return -ENOMEM; 213 214 cmd->channel = channel; 215 216 ret = wl1271_cmd_send(wl, CMD_DFS_RADAR_DETECTION_DEBUG, 217 cmd, sizeof(*cmd), 0); 218 if (ret < 0) { 219 wl1271_error("failed to send radar detection debug command"); 220 goto out_free; 221 } 222 223out_free: 224 kfree(cmd); 225 return ret; 226} |
|