mac80211: add iw command wrapper with error logging
[openwrt/staging/chunkeey.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index 703609b1475449c4c70a50fe305db2fbab4b21ce..80e5498434565ad040bcdbb9df41497f64b541d4 100644 (file)
@@ -14,6 +14,10 @@ MP_CONFIG_INT="mesh_retry_timeout mesh_confirm_timeout mesh_holding_timeout mesh
 MP_CONFIG_BOOL="mesh_auto_open_plinks mesh_fwding"
 MP_CONFIG_STRING="mesh_power_mode"
 
+iw() {
+       command iw $@ || logger -t mac80211 "Failed command: iw $@"
+}
+
 drv_mac80211_init_device_config() {
        hostapd_common_add_device_config