]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/mwifiex/11ac.c
mwifiex: correct bss_mode check while appending vht operation IE
[~andy/linux] / drivers / net / wireless / mwifiex / 11ac.c
index 966a78f8e21a3ce974459c27a50326c7588cd270..5e0eec4d71c7a5d61e4d65b73ca503aaaf54a085 100644 (file)
@@ -200,7 +200,7 @@ int mwifiex_cmd_append_11ac_tlv(struct mwifiex_private *priv,
 
        /* VHT Operation IE */
        if (bss_desc->bcn_vht_oper) {
-               if (priv->bss_mode == HostCmd_BSS_MODE_IBSS) {
+               if (priv->bss_mode == NL80211_IFTYPE_STATION) {
                        vht_op = (struct mwifiex_ie_types_vht_oper *)*buffer;
                        memset(vht_op, 0, sizeof(*vht_op));
                        vht_op->header.type =