anchor.diff:      ${mandir}/man1/nmtui* \
   "
   
  -FILES:${PN}-wifi = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so"
  +FILES:${PN}-wifi = "\
  +    ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so \
  +    ${libdir}/NetworkManager/conf.d/enable-iwd.conf \
  +"
  +def get_wifi_deps(d):
  +    packageconfig = (d.getVar('PACKAGECONFIG') or "").split()
  +    if 'wifi' in packageconfig:
  +        if 'iwd' in packageconfig:
  +            return 'iwd'
  +        else:
  +            return 'wpa-supplicant'
  +    else:
  +        return ''
  +RRECOMMENDS:${PN}-wifi += "${@get_wifi_deps(d)}"
   
   FILES:${PN}-wwan = "\
       ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wwan.so \
       ${NETWORKMANAGER_PLUGINDIR}/libnm-wwan.so \
   "
  +RRECOMMENDS:${PN}-wwan += "${@bb.utils.contains('PACKAGECONFIG','modemmanager','modemmanager','',d)}"
   
   FILES:${PN}-ovs = "\
       ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-ovs.so \
  
positive.code: # consolekit is not picked by shlibs, so add it to RDEPENDS too
  PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit"
  PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info"
  PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp"
  PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq"
  PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss"
  PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf"
  
negative.code:     ${NETWORKMANAGER_PLUGINDIR}/libnm-ppp-plugin.so \
      ${libdir}/pppd/*/nm-pppd-plugin.so \
  "
  RRECOMMENDS:${PN}-ppp += "${@bb.utils.contains('PACKAGECONFIG','ppp','ppp','',d)}"
  
  FILES:${PN}-dev += " \
      ${libdir}/pppd/*/*.la \
  