A fuzzy approach for power savings in both infrastructure and ad hoc WLANs