X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Fhostif.c;h=73e89c7137ad237b5712a1f751f49c8421d70fbc;hb=f99b6fd51bf8429eaad357ac9c7149a92f719628;hp=ba7a6e102ed19645f3404f2bf1fa9dec71b5a380;hpb=aa5cbd930a0378e093a91e37849602d1a0249ded;p=carl9170fw.git diff --git a/carlfw/src/hostif.c b/carlfw/src/hostif.c index ba7a6e1..73e89c7 100644 --- a/carlfw/src/hostif.c +++ b/carlfw/src/hostif.c @@ -19,8 +19,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #include "carl9170.h" @@ -235,7 +234,12 @@ void handle_cmd(struct carl9170_rsp *resp) memset(&fw.tally, 0, sizeof(struct carl9170_tally_rsp)); break; -#ifdef CONFIG_CARL9170FW_CAB_QUEUE + case CARL9170_CMD_WREGB: + resp->hdr.len = 0; + for (i = 0; i < MIN(cmd->wregb.count, cmd->hdr.len - 8); i++) + setb(cmd->wregb.addr + i, cmd->wregb.val[i]); + break; + case CARL9170_CMD_BCN_CTRL: resp->hdr.len = 0; @@ -250,7 +254,6 @@ void handle_cmd(struct carl9170_rsp *resp) fw.wlan.cab_flush_trigger[cmd->bcn_ctrl.vif_id] = CARL9170_CAB_TRIGGER_EMPTY; } break; -#endif /* CONFIG_CARL9170FW_CAB_QUEUE */ #ifdef CONFIG_CARL9170FW_SECURITY_ENGINE case CARL9170_CMD_EKEY: