if (pmlmeinfo->HT_enable)
                network_type = WIRELESS_11_24N;
 
-       if ((cckratesonly_included(rate, ratelen)) == true)
+       if (cckratesonly_included(rate, ratelen))
                network_type |= WIRELESS_11B;
-       else if ((cckrates_included(rate, ratelen)) == true)
+       else if (cckrates_included(rate, ratelen))
                network_type |= WIRELESS_11BG;
        else
                network_type |= WIRELESS_11G;
        if (pmlmeinfo->HT_enable)
                network_type = WIRELESS_11_24N;
 
-       if ((cckratesonly_included(rate, ratelen)) == true)
+       if (cckratesonly_included(rate, ratelen))
                network_type |= WIRELESS_11B;
-       else if ((cckrates_included(rate, ratelen)) == true)
+       else if (cckrates_included(rate, ratelen))
                network_type |= WIRELESS_11BG;
        else
                network_type |= WIRELESS_11G;