Skip to content

Commit

Permalink
network: make missing nl80211 non-fatal
Browse files Browse the repository at this point in the history
This will enable the networking module to be used for ethernet
interfaces on kernels without nl80211 support.

It should be reasonable to allow desktop systems without
wireless interfaces to run custom kenrel configs
without nl80211 compiled in.
  • Loading branch information
uggedal committed Jul 31, 2020
1 parent a213aed commit fb8cda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void waybar::modules::Network::createInfoSocket() {
}
nl80211_id_ = genl_ctrl_resolve(sock_, "nl80211");
if (nl80211_id_ < 0) {
throw std::runtime_error("Can't resolve nl80211 interface");
spdlog::warn("Can't resolve nl80211 interface");
}
}

Expand Down

0 comments on commit fb8cda9

Please sign in to comment.