mwifiex: get_channel from firmware
[muen/linux.git] / drivers / net / wireless / marvell / mwifiex / sta_ioctl.c
index ed66f12d3301d33bf7271384ecdd6a7399261df2..5414b755cf8225829e86b0bb26390e7635fadf73 100644 (file)
@@ -1481,3 +1481,15 @@ int mwifiex_get_wakeup_reason(struct mwifiex_private *priv, u16 action,
 
        return status;
 }
+
+int mwifiex_get_chan_info(struct mwifiex_private *priv,
+                         struct mwifiex_channel_band *channel_band)
+{
+       int status = 0;
+
+       status = mwifiex_send_cmd(priv, HostCmd_CMD_STA_CONFIGURE,
+                                 HostCmd_ACT_GEN_GET, 0, channel_band,
+                                 MWIFIEX_SYNC_CMD);
+
+       return status;
+}