replace a few unnecessary $(shell) calls
[openwrt/mini2440.git] / package / hostapd / patches / 120-countrycode.patch
blob8ffc65ca217efb5108958b3d6a89fc691e76d1db
1 --- a/hostapd/hostapd.c
2 +++ b/hostapd/hostapd.c
3 @@ -1546,10 +1546,8 @@ static int setup_interface(struct hostap
4 if (hapd->iconf->country[0] && hapd->iconf->country[1]) {
5 os_memcpy(country, hapd->iconf->country, 3);
6 country[3] = '\0';
7 - if (hostapd_set_country(hapd, country) < 0) {
8 + if (hostapd_set_country(hapd, country) < 0)
9 wpa_printf(MSG_ERROR, "Failed to set country code");
10 - return -1;
11 - }
14 if (hapd->iconf->ieee80211d &&