Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102737508
D46201.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
835 B
Referenced Files
None
Subscribers
None
D46201.diff
View Options
diff --git a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300eep.h b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300eep.h
--- a/sys/contrib/dev/ath/ath_hal/ar9300/ar9300eep.h
+++ b/sys/contrib/dev/ath/ath_hal/ar9300/ar9300eep.h
@@ -142,10 +142,10 @@
#define OSPREY_EEPMISC_WOW 0x02
#define OSPREY_CUSTOMER_DATA_SIZE 20
-#define FREQ2FBIN(x,y) \
- (u_int8_t)(((y) == HAL_FREQ_BAND_2GHZ) ? ((x) - 2300) : (((x) - 4800) / 5))
-#define FBIN2FREQ(x,y) \
- (((y) == HAL_FREQ_BAND_2GHZ) ? (2300 + x) : (4800 + 5 * x))
+#define FREQ2FBIN(freq,is_2ghz) \
+ (u_int8_t)((is_2ghz) ? ((freq) - 2300) : (((freq) - 4800) / 5))
+#define FBIN2FREQ(freq,is_2ghz) \
+ ((is_2ghz) ? (2300 + freq) : (4800 + 5 * freq))
#define OSPREY_MAX_CHAINS 3
#define OSPREY_ANT_16S 25
#define OSPREY_FUTURE_MODAL_SZ 6
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 1:16 PM (20 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14678776
Default Alt Text
D46201.diff (835 B)
Attached To
Mode
D46201: Fix enum warnings in ath_hal's ar9300
Attached
Detach File
Event Timeline
Log In to Comment