static inline int wext_freq2mhz(const struct iw_freq *in)
{
- int i, mhz;
+ int i;
if( in->e == 6 )
{
}
else
{
- mhz = in->m;
- for(i = 0; i < in->e; i++)
- mhz *= 10;
-
- return (int)(mhz / 100000);
+ return (int)(wext_freq2float(in) / 1000000);
}
}