1 --- a/drivers/net/wireless/ath/carl9170/fw.c
2 +++ b/drivers/net/wireless/ath/carl9170/fw.c
3 @@ -185,8 +185,10 @@ static int ar9170_fw_check(struct ar9170
4 if (SUPP(CARL9170FW_WLANTX_CAB))
5 ar->hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
7 +#ifdef CONFIG_CARL9170_WPS_BUTTON
8 if (!SUPP(CARL9170FW_GPIO_INTERRUPT))
9 ar->has_wps_button = false;